I think that i and idx should be size_t (64-bit). (#438)

This commit is contained in:
Daniel Lemire 2020-01-13 17:42:52 -05:00 committed by GitHub
parent f97b655f02
commit a804351a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ struct structural_parser {
const uint8_t* const buf;
const size_t len;
ParsedJson &pj;
uint32_t i; // next structural index
uint32_t idx; // location of the structural character in the input (buf)
size_t i; // next structural index
size_t idx; // location of the structural character in the input (buf)
uint8_t c; // used to track the (structural) character we are looking at
uint32_t depth = 0; // could have an arbitrary starting depth