diff --git a/test/printf-test.cc b/test/printf-test.cc index 041fbad1..67ac052e 100644 --- a/test/printf-test.cc +++ b/test/printf-test.cc @@ -295,7 +295,8 @@ void TestLength(const char *length_spec, U value) { fmt::ULongLong unsigned_value = value; // Apply integer promotion to the argument. fmt::ULongLong max = std::numeric_limits::max(); - if (max <= static_cast(std::numeric_limits::max())) { + using fmt::internal::check; + if (check(max <= static_cast(std::numeric_limits::max()))) { signed_value = static_cast(value); unsigned_value = static_cast(value); } else if (max <= std::numeric_limits::max()) {