diff --git a/src/json.hpp b/src/json.hpp index 78ede7e75..12fbcf5b0 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -8866,7 +8866,7 @@ basic_json_parser_63: } int count = 0; // exponent calculation - if (! nl_isdigit(cp)) + if (not nl_isdigit(cp)) { if (plus_or_minus) { diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index a1b81efd0..0014de271 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -8154,6 +8154,7 @@ class basic_json if (*str == 'e' or *str == 'E') { cp = *++str; + const bool negative_exp = cp == '-'; // read in exponent sign (+/-) const bool plus_or_minus = (cp == '-' or cp == '+'); if (plus_or_minus) @@ -8162,7 +8163,7 @@ class basic_json } int count = 0; // exponent calculation - if (! nl_isdigit(cp)) + if (not nl_isdigit(cp)) { if (plus_or_minus) {