mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +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:
parent
b64bb7a3e1
commit
0399b38f77
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue