mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Fix a warning.
This commit is contained in:
parent
39ac84f01e
commit
e0f92d675e
@ -338,7 +338,8 @@ void TestLength(const char *length_spec) {
|
|||||||
std::numeric_limits<fmt::LongLong>::min()) {
|
std::numeric_limits<fmt::LongLong>::min()) {
|
||||||
TestLength<T>(length_spec, fmt::LongLong(min) - 1);
|
TestLength<T>(length_spec, fmt::LongLong(min) - 1);
|
||||||
}
|
}
|
||||||
if (max < std::numeric_limits<fmt::LongLong>::max())
|
fmt::ULongLong long_long_max = std::numeric_limits<fmt::LongLong>::max();
|
||||||
|
if (max < 0 || static_cast<fmt::ULongLong>(max) < long_long_max)
|
||||||
TestLength<T>(length_spec, fmt::LongLong(max) + 1);
|
TestLength<T>(length_spec, fmt::LongLong(max) + 1);
|
||||||
TestLength<T>(length_spec, std::numeric_limits<short>::min());
|
TestLength<T>(length_spec, std::numeric_limits<short>::min());
|
||||||
TestLength<T>(length_spec, std::numeric_limits<unsigned short>::max());
|
TestLength<T>(length_spec, std::numeric_limits<unsigned short>::max());
|
||||||
|
Loading…
Reference in New Issue
Block a user