mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
This commit is contained in:
parent
92eca125b5
commit
a7d15fd6d0
@ -305,7 +305,7 @@ adjusted_mantissa compute_float(decimal &d) {
|
||||
decimal_left_shift(d, shift);
|
||||
if (d.decimal_point > decimal_point_range) {
|
||||
// we want to get infinity:
|
||||
answer.power2 = 0xFF;
|
||||
answer.power2 = binary::infinite_power();
|
||||
answer.mantissa = 0;
|
||||
return answer;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user