Allow parsing of buffers larger than 2GB on most 64 bit arch.

size_t is usually 64 bits on most architectures -- this allows for larger .json files
This commit is contained in:
Luke Carmichael
2016-10-01 22:06:34 -04:00
committed by GitHub
parent 98be7da3e2
commit d1e97737d6

View File

@@ -914,7 +914,7 @@ static json_t *parse_json(lex_t *lex, size_t flags, json_error_t *error)
typedef struct
{
const char *data;
int pos;
size_t pos;
} string_data_t;
static int string_get(void *data)