mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
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:
committed by
Andreas Kling
parent
b64bb7a3e1
commit
0399b38f77
@@ -268,12 +268,12 @@ public:
|
|||||||
|
|
||||||
ALWAYS_INLINE const T& at(size_t i) const
|
ALWAYS_INLINE const T& at(size_t i) const
|
||||||
{
|
{
|
||||||
ASSERT(i >= 0 && i < m_size);
|
ASSERT(i < m_size);
|
||||||
return data()[i];
|
return data()[i];
|
||||||
}
|
}
|
||||||
ALWAYS_INLINE T& at(size_t i)
|
ALWAYS_INLINE T& at(size_t i)
|
||||||
{
|
{
|
||||||
ASSERT(i >= 0 && i < m_size);
|
ASSERT(i < m_size);
|
||||||
return data()[i];
|
return data()[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user