AK: Allow zero-valued signed size types in format strings

This commit is contained in:
Andrew Kaster 2023-02-12 11:07:40 -07:00 committed by Linus Groh
parent 61f4914d6e
commit a2ef168d75

View file

@ -136,7 +136,7 @@ struct TypeErasedParameter {
if constexpr (sizeof(T) > sizeof(size_t))
VERIFY(value < NumericLimits<size_t>::max());
if constexpr (IsSigned<T>)
VERIFY(value > 0);
VERIFY(value >= 0);
return static_cast<size_t>(value);
});
}