Skip to content

Commit

Permalink
Merge pull request #48 from fastfloat/dlemire/fix_issue_47
Browse files Browse the repository at this point in the history
Fixes issue 47
  • Loading branch information
lemire authored Dec 29, 2020
2 parents 2940ec0 + a7d15fd commit 2fa7915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fast_float/simple_decimal_conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2fa7915

Please sign in to comment.