mirror of
https://github.com/lemire/fast_double_parser.git
synced 2025-04-03 20:04:57 +00:00
This moves a variable to clean things up.
This commit is contained in:
parent
1f6873e931
commit
8214b37c86
1 changed files with 1 additions and 2 deletions
|
@ -1174,7 +1174,6 @@ really_inline bool parse_number(const char *p, double *outDouble) {
|
|||
}
|
||||
int digit_count =
|
||||
int(p - start_digits - 1); // used later to guard against overflows
|
||||
int64_t exp_number = 0; // exponential part
|
||||
if (('e' == *p) || ('E' == *p)) {
|
||||
++p;
|
||||
bool neg_exp = false;
|
||||
|
@ -1188,7 +1187,7 @@ really_inline bool parse_number(const char *p, double *outDouble) {
|
|||
return false;
|
||||
}
|
||||
unsigned char digit = *p - '0';
|
||||
exp_number = digit;
|
||||
int64_t exp_number = digit;
|
||||
p++;
|
||||
if (is_integer(*p)) {
|
||||
digit = *p - '0';
|
||||
|
|
Loading…
Add table
Reference in a new issue