From 66a4c06a9d7122083dd2ecee1fe7474442ed50aa Mon Sep 17 00:00:00 2001 From: Jett Date: Sun, 23 Oct 2016 14:58:12 -0500 Subject: [PATCH] use not over ! --- src/json.hpp | 2 +- src/json.hpp.re2c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) {