diff --git a/test/printf-test.cc b/test/printf-test.cc index c0e3626e..a3a60276 100644 --- a/test/printf-test.cc +++ b/test/printf-test.cc @@ -337,12 +337,9 @@ void TestLength(const char *length_spec) { TestLength(length_spec, -42); TestLength(length_spec, min); TestLength(length_spec, max); - using fmt::internal::check; - fmt::LongLong long_long_min = std::numeric_limits::min(); - if (check(min >= 0) || check(static_cast(min) > long_long_min)) - TestLength(length_spec, fmt::LongLong(min) - 1); + TestLength(length_spec, fmt::LongLong(min) - 1); fmt::ULongLong long_long_max = std::numeric_limits::max(); - if (check(max < 0 || static_cast(max) < long_long_max)) + if (static_cast(max) < long_long_max) TestLength(length_spec, fmt::LongLong(max) + 1); TestLength(length_spec, std::numeric_limits::min()); TestLength(length_spec, std::numeric_limits::max());