1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

AK: SinglyLinkedList::size_slow() should return size_t

This commit is contained in:
Andreas Kling 2019-12-09 17:48:58 +01:00
parent 6f4c380d95
commit 7248c34e35
3 changed files with 7 additions and 7 deletions

View file

@ -53,9 +53,9 @@ public:
bool is_empty() const { return !head(); }
inline int size_slow() const
inline size_t size_slow() const
{
int size = 0;
size_t size = 0;
for (auto* node = m_head; node; node = node->next)
++size;
return size;