We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3b164e + 1ccabed commit 32d21dcCopy full SHA for 32d21dc
include/fast_float/digit_comparison.h
@@ -86,7 +86,7 @@ fastfloat_really_inline void round(adjusted_mantissa& am, callback cb) noexcept
86
if (-am.power2 >= mantissa_shift) {
87
// have a denormal float
88
int32_t shift = -am.power2 + 1;
89
- cb(am, std::min(shift, 64));
+ cb(am, std::min<int32_t>(shift, 64));
90
// check for round-up: if rounding-nearest carried us to the hidden bit.
91
am.power2 = (am.mantissa < (uint64_t(1) << binary_format<T>::mantissa_explicit_bits())) ? 0 : 1;
92
return;
0 commit comments