From c335514c6e98e952b9b33fa357fee878a0b0be54 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Thu, 23 Jul 2026 09:58:09 +0200 Subject: [PATCH] Fix compat with min() macro --- include/fast_float/parse_number.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fast_float/parse_number.h b/include/fast_float/parse_number.h index c819c8a..58cdafd 100644 --- a/include/fast_float/parse_number.h +++ b/include/fast_float/parse_number.h @@ -96,7 +96,7 @@ fastfloat_really_inline bool rounds_to_nearest() noexcept { // asm). The value does not need to be std::numeric_limits::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::min(); + static float volatile fmin = (std::numeric_limits::min)(); float fmini = fmin; // we copy it so that it gets loaded at most once. // // Explanation: