mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09: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
Notes:
sideshowbarker
2024-07-19 06:43:08 +09:00
Author: https://github.com/linusg
Commit: 0399b38f77
Pull-request: https://github.com/SerenityOS/serenity/pull/2198
Issue: https://github.com/SerenityOS/serenity/issues/2196
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue