aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/json.h4
1 files changed, 2 insertions, 2 deletions
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;
}