Skip to content

Commit

Permalink
Merge pull request #122 from jwakely/patch-1
Browse files Browse the repository at this point in the history
Fix deduction failure for std::min call
  • Loading branch information
lemire authored Jan 18, 2022
2 parents d3b164e + 1ccabed commit 32d21dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fast_float/digit_comparison.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fastfloat_really_inline void round(adjusted_mantissa& am, callback cb) noexcept
if (-am.power2 >= mantissa_shift) {
// have a denormal float
int32_t shift = -am.power2 + 1;
cb(am, std::min(shift, 64));
cb(am, std::min<int32_t>(shift, 64));
// check for round-up: if rounding-nearest carried us to the hidden bit.
am.power2 = (am.mantissa < (uint64_t(1) << binary_format<T>::mantissa_explicit_bits())) ? 0 : 1;
return;
Expand Down

0 comments on commit 32d21dc

Please sign in to comment.