mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Suppress bogus coverity warnings
This commit is contained in:
parent
22d572d7a2
commit
d25d775ae6
@ -299,7 +299,7 @@ void TestLength(const char *length_spec, U value) {
|
|||||||
if (check(max <= static_cast<unsigned>(std::numeric_limits<int>::max()))) {
|
if (check(max <= static_cast<unsigned>(std::numeric_limits<int>::max()))) {
|
||||||
signed_value = static_cast<int>(value);
|
signed_value = static_cast<int>(value);
|
||||||
unsigned_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);
|
signed_value = static_cast<unsigned>(value);
|
||||||
unsigned_value = static_cast<unsigned>(value);
|
unsigned_value = static_cast<unsigned>(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user