summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-05-11 23:32:48 +0100
committerAndreas Kling <kling@serenityos.org>2020-05-12 08:57:27 +0200
commit0399b38f77270da19d47296d03efd29b5cc7493a (patch)
treec8ba151fe695d8556933aec776daa0945121d864 /AK
parentb64bb7a3e1fd38aa9659c0863e17d1c010e9e140 (diff)
downloadserenity-0399b38f77270da19d47296d03efd29b5cc7493a.zip
AK: Fix gcc 10.1 compiler warnings in Vector.h
It's complaining about "size_t >= 0" checks. Fixes #2196.
Diffstat (limited to 'AK')
-rw-r--r--AK/Vector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/Vector.h b/AK/Vector.h
index 1b40a8f509..1c0c0385f6 100644
--- a/AK/Vector.h
+++ b/AK/Vector.h
@@ -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];
}