mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 17:26:51 +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++; };
|
||||
--preverse;
|
||||
}
|
||||
answer.decimal_point += trailing_zeros;
|
||||
answer.num_digits -= uint32_t(trailing_zeros);
|
||||
answer.decimal_point += int32_t(answer.num_digits);
|
||||
answer.num_digits -= uint32_t(trailing_zeros);
|
||||
}
|
||||
if(answer.num_digits > max_digits) {
|
||||
answer.truncated = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user