make negative_exp and plus_or_minus const

This commit is contained in:
Jett 2016-10-23 14:55:14 -05:00
parent babb65df46
commit 308082a9a8
2 changed files with 6 additions and 9 deletions

View File

@ -8857,13 +8857,12 @@ basic_json_parser_63:
if (*str == 'e' or *str == 'E')
{
cp = *++str;
bool negative_exp = cp == '-'; // read in exponent sign (+/-)
bool plus_or_minus = false;
if (cp == '-' or cp == '+')
const bool negative_exp = cp == '-'; // read in exponent sign (+/-)
const bool plus_or_minus = (cp == '-' or cp == '+');
if (plus_or_minus)
{
cp = *++str;
plus_or_minus = true;
}
int count = 0; // exponent calculation

View File

@ -8154,13 +8154,11 @@ class basic_json
if (*str == 'e' or *str == 'E')
{
cp = *++str;
bool negative_exp = cp == '-'; // read in exponent sign (+/-)
bool plus_or_minus = false;
if (cp == '-' or cp == '+')
const bool negative_exp = cp == '-'; // read in exponent sign (+/-)
const bool plus_or_minus = (cp == '-' or cp == '+');
if (plus_or_minus)
{
cp = *++str;
plus_or_minus = true;
}
int count = 0; // exponent calculation