Suppress bogus coverity warnings

This commit is contained in:
vitaut 2015-10-20 06:26:31 -07:00
parent 22d572d7a2
commit d25d775ae6

View File

@ -299,7 +299,7 @@ void TestLength(const char *length_spec, U value) {
if (check(max <= static_cast<unsigned>(std::numeric_limits<int>::max()))) {
signed_value = static_cast<int>(value);
unsigned_value = static_cast<int>(value);
} else if (max <= std::numeric_limits<unsigned>::max()) {
} else if (check(max <= std::numeric_limits<unsigned>::max())) {
signed_value = static_cast<unsigned>(value);
unsigned_value = static_cast<unsigned>(value);
}