Skip to content

Commit 2fa7915

Browse files
authored
Merge pull request #48 from fastfloat/dlemire/fix_issue_47
Fixes issue 47
2 parents 2940ec0 + a7d15fd commit 2fa7915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fast_float/simple_decimal_conversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ adjusted_mantissa compute_float(decimal &d) {
305305
decimal_left_shift(d, shift);
306306
if (d.decimal_point > decimal_point_range) {
307307
// we want to get infinity:
308-
answer.power2 = 0xFF;
308+
answer.power2 = binary::infinite_power();
309309
answer.mantissa = 0;
310310
return answer;
311311
}

0 commit comments

Comments
 (0)