From 4a4bf8d98d3735dbf0c83ccbf2527189a386735e Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 30 Nov 2018 22:40:10 -0500 Subject: [PATCH] Fixed issue where the numbers don't appear properly after parsing. --- include/simdjson/parsedjson.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/simdjson/parsedjson.h b/include/simdjson/parsedjson.h index 88e5a18a..46b35696 100644 --- a/include/simdjson/parsedjson.h +++ b/include/simdjson/parsedjson.h @@ -169,12 +169,12 @@ public: case 'l': // we have a long int if (tapeidx + 1 >= howmany) return false; - printf("%" PRId64, (int64_t)tape[tapeidx++]); + printf("%" PRId64, (int64_t)tape[++tapeidx]); break; case 'd': // we have a double if (tapeidx + 1 >= howmany) return false; - printf("%f", *((double *)&tape[tapeidx++])); + printf("%f", *((double *)&tape[++tapeidx])); break; case 'n': // we have a null printf("null");