mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-08 10:46:52 +08:00
Simplifying fix.
This commit is contained in:
parent
c5adf9e4a5
commit
716c87067e
@ -262,9 +262,8 @@ fastfloat_really_inline decimal parse_decimal(const char *p, const char *pend) n
|
|||||||
if(*preverse == '0') { trailing_zeros++; };
|
if(*preverse == '0') { trailing_zeros++; };
|
||||||
--preverse;
|
--preverse;
|
||||||
}
|
}
|
||||||
answer.decimal_point += trailing_zeros;
|
|
||||||
answer.num_digits -= uint32_t(trailing_zeros);
|
|
||||||
answer.decimal_point += int32_t(answer.num_digits);
|
answer.decimal_point += int32_t(answer.num_digits);
|
||||||
|
answer.num_digits -= uint32_t(trailing_zeros);
|
||||||
}
|
}
|
||||||
if(answer.num_digits > max_digits) {
|
if(answer.num_digits > max_digits) {
|
||||||
answer.truncated = true;
|
answer.truncated = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user