Browse Source

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

Andrew Kaster 2 years ago
parent
commit
a2ef168d75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AK/Format.h

+ 1 - 1
AK/Format.h

@@ -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);
         });
     }