diff --git a/src/json.hpp b/src/json.hpp index fdb58bfb..f823d435 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -11446,16 +11446,8 @@ basic_json_parser_74: case lexer::token_type::value_integer: case lexer::token_type::value_float: { - const bool ok = m_lexer.get_number(result, last_token); + m_lexer.get_number(result, last_token); get_token(); - - // if number conversion was unsuccessful, then is is - // because the number was directly followed by an - // unexpected character (e.g. "01" where "1" is unexpected) - if (not ok) - { - unexpect(last_token); - } break; } diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index dbed606c..d58e80fc 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -10480,16 +10480,8 @@ class basic_json case lexer::token_type::value_integer: case lexer::token_type::value_float: { - const bool ok = m_lexer.get_number(result, last_token); + m_lexer.get_number(result, last_token); get_token(); - - // if number conversion was unsuccessful, then is is - // because the number was directly followed by an - // unexpected character (e.g. "01" where "1" is unexpected) - if (not ok) - { - unexpect(last_token); - } break; }