diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index f055584fd..60eb3526f 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -1521,7 +1521,6 @@ scan_number_done: // skip following whitespace skip_whitespace(); } - while (current == ' ' || current == '\t' || current == '\n' || current == '\r'); switch (current) { diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 82c0d4847..1d02cc12b 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -9626,7 +9626,6 @@ scan_number_done: // skip following whitespace skip_whitespace(); } - while (current == ' ' || current == '\t' || current == '\n' || current == '\r'); switch (current) {