Fix a warning.
This commit is contained in:
1 parent
39ac84f01e
commit
e0f92d675e
1 file changed
+2
-1
+2
-1
@@ -338,7 +338,8 @@ void TestLength(const char *length_spec) {
|
||||
std::numeric_limits<fmt::LongLong>::min()) {
|
||||
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, std::numeric_limits<short>::min());
|
||||
TestLength<T>(length_spec, std::numeric_limits<unsigned short>::max());
|
||||
|
||||
Reference in new issue
Block a user