AK: Fix gcc 10.1 compiler warnings in Vector.h

It's complaining about "size_t >= 0" checks.

Fixes #2196.
This commit is contained in:
Linus Groh 2020-05-11 23:32:48 +01:00 committed by Andreas Kling
parent b64bb7a3e1
commit 0399b38f77
Notes: sideshowbarker 2024-07-19 06:43:08 +09:00

View File

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