diff --git a/AK/Vector.h b/AK/Vector.h index 3bf34b8d2a6..a721fee8046 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -819,7 +819,7 @@ private: static size_t padded_capacity(size_t capacity) { - return max(static_cast(4), capacity + (capacity / 4) + 4); + return 4 + capacity + capacity / 4; } StorageType* slot(size_t i) { return &data()[i]; }