From f52778f04ddd0899374ce24bc36964181f67cbaa Mon Sep 17 00:00:00 2001 From: ipknHama Date: Sun, 9 Nov 2014 08:47:45 +0900 Subject: Fixes a bug that crow::json failed to parse double value starting with 0 --- include/json.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/json.h b/include/json.h index 91d4fe7..4fe03a7 100644 --- a/include/json.h +++ b/include/json.h @@ -824,9 +824,9 @@ namespace crow return {};*/ break; case '.': - state = (NumberParsingState)"\7\7\7\4\7\7\7"[state]; + state = (NumberParsingState)"\7\7\4\4\7\7\7"[state]; /* - if (state == NumberParsingState::Digits) + if (state == NumberParsingState::Digits || state == NumberParsingState::ZeroFirst) { state = NumberParsingState::DigitsAfterPoints; } -- cgit v1.2.3-54-g00ecf