diff --git a/test/printf-test.cc b/test/printf-test.cc index 67ac052e..c44a7708 100644 --- a/test/printf-test.cc +++ b/test/printf-test.cc @@ -299,7 +299,7 @@ void TestLength(const char *length_spec, U value) { 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()) { + } else if (check(max <= std::numeric_limits::max())) { signed_value = static_cast(value); unsigned_value = static_cast(value); }