diff options
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Vector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Vector.h b/AK/Vector.h index 1b40a8f509..1c0c0385f6 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -268,12 +268,12 @@ public: ALWAYS_INLINE const T& at(size_t i) const { - ASSERT(i >= 0 && i < m_size); + ASSERT(i < m_size); return data()[i]; } ALWAYS_INLINE T& at(size_t i) { - ASSERT(i >= 0 && i < m_size); + ASSERT(i < m_size); return data()[i]; } |