1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-13 20:21:48 +03:00

🚑 fix for #452

This commit is contained in:
Niels Lohmann
2017-02-15 21:30:28 +01:00
parent 82fb613763
commit b9f3149451
4 changed files with 163 additions and 107 deletions

View File

@ -9698,6 +9698,8 @@ class basic_json
exp = e (minus | plus)? digit+;
frac = decimal_point digit+;
int = (zero | digit_1_9 digit*);
invalid_int = minus? "0" digit+;
invalid_int { last_token_type = token_type::parse_error; break; }
number_unsigned = int;
number_unsigned { last_token_type = token_type::value_unsigned; break; }
number_integer = minus int;