diff --git a/include/fmt/printf.h b/include/fmt/printf.h index a2fa945d..e48d2ca1 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -28,7 +28,7 @@ template struct int_checker { template <> struct int_checker { template static bool fits_in_int(T value) { - return value >= std::numeric_limits::min() && + return value >= (std::numeric_limits::min)() && value <= max_value(); } static bool fits_in_int(int) { return true; }