mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-02 22:24:26 +00:00
AK: Allow zero-valued signed size types in format strings
This commit is contained in:
parent
61f4914d6e
commit
a2ef168d75
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue