mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-07-30 16:26:21 +08:00
Fix compat with min() macro
This commit is contained in:
parent
ec239e0e04
commit
c335514c6e
@ -96,7 +96,7 @@ fastfloat_really_inline bool rounds_to_nearest() noexcept {
|
||||
// asm). The value does not need to be std::numeric_limits<float>::min(), any
|
||||
// small value so that 1 + x should round to 1 would do (after accounting for
|
||||
// excess precision, as in 387 instructions).
|
||||
static float volatile fmin = std::numeric_limits<float>::min();
|
||||
static float volatile fmin = (std::numeric_limits<float>::min)();
|
||||
float fmini = fmin; // we copy it so that it gets loaded at most once.
|
||||
//
|
||||
// Explanation:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user