make negative_exp and plus_or_minus const
This commit is contained in:
parent
babb65df46
commit
308082a9a8
@ -8857,13 +8857,12 @@ basic_json_parser_63:
|
|||||||
if (*str == 'e' or *str == 'E')
|
if (*str == 'e' or *str == 'E')
|
||||||
{
|
{
|
||||||
cp = *++str;
|
cp = *++str;
|
||||||
bool negative_exp = cp == '-'; // read in exponent sign (+/-)
|
|
||||||
|
|
||||||
bool plus_or_minus = false;
|
const bool negative_exp = cp == '-'; // read in exponent sign (+/-)
|
||||||
if (cp == '-' or cp == '+')
|
const bool plus_or_minus = (cp == '-' or cp == '+');
|
||||||
|
if (plus_or_minus)
|
||||||
{
|
{
|
||||||
cp = *++str;
|
cp = *++str;
|
||||||
plus_or_minus = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int count = 0; // exponent calculation
|
int count = 0; // exponent calculation
|
||||||
|
|||||||
@ -8154,13 +8154,11 @@ class basic_json
|
|||||||
if (*str == 'e' or *str == 'E')
|
if (*str == 'e' or *str == 'E')
|
||||||
{
|
{
|
||||||
cp = *++str;
|
cp = *++str;
|
||||||
bool negative_exp = cp == '-'; // read in exponent sign (+/-)
|
const bool negative_exp = cp == '-'; // read in exponent sign (+/-)
|
||||||
|
const bool plus_or_minus = (cp == '-' or cp == '+');
|
||||||
bool plus_or_minus = false;
|
if (plus_or_minus)
|
||||||
if (cp == '-' or cp == '+')
|
|
||||||
{
|
{
|
||||||
cp = *++str;
|
cp = *++str;
|
||||||
plus_or_minus = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int count = 0; // exponent calculation
|
int count = 0; // exponent calculation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user