From a804351a76db1b7e096d4fbbc53607f2174552f2 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 13 Jan 2020 17:42:52 -0500 Subject: [PATCH] I think that i and idx should be size_t (64-bit). (#438) --- src/generic/stage2_build_tape.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/stage2_build_tape.h b/src/generic/stage2_build_tape.h index f34440b13..d244c2d3f 100644 --- a/src/generic/stage2_build_tape.h +++ b/src/generic/stage2_build_tape.h @@ -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