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:
parent
6f4c380d95
commit
7248c34e35
3 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue