浏览代码

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

Andrew Kaster 2 年之前
父节点
当前提交
a2ef168d75
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
         });
     }