mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03: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: https://github.com/SerenityOS/serenity/commit/0399b38f772 Pull-request: https://github.com/SerenityOS/serenity/pull/2198 Issue: https://github.com/SerenityOS/serenity/issues/2196
@ -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…
Reference in New Issue
Block a user