From d94e8ee973462f3b8bf8038e13e6fbe3244a4b49 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Wed, 2 Jan 2019 12:16:29 -0500 Subject: [PATCH] Fixing dead code. --- include/simdjson/stringparsing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/simdjson/stringparsing.h b/include/simdjson/stringparsing.h index f2e1288b..1b4b521b 100644 --- a/include/simdjson/stringparsing.h +++ b/include/simdjson/stringparsing.h @@ -111,7 +111,7 @@ really_inline bool parse_string(const uint8_t *buf, UNUSED size_t len, return is_ok; #else //CHECKUNESCAPED #ifdef JSON_TEST_STRINGS // for unit testing - foundString(buf + offset,start_of_string,pj.current_string_buf_loc); + foundString(buf + offset,start_of_string,pj.current_string_buf_loc - 1); #endif // JSON_TEST_STRINGS return true; #endif //CHECKUNESCAPED