From d25d775ae679fce5b0ef807f37ab979b5b25582e Mon Sep 17 00:00:00 2001 From: vitaut Date: Tue, 20 Oct 2015 06:26:31 -0700 Subject: [PATCH] Suppress bogus coverity warnings --- test/printf-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }