1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

AK: Make Queue use size_t for its size

This commit is contained in:
Andreas Kling 2020-02-25 14:55:04 +01:00
parent ceec1a7d38
commit fbe4081f4b
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ public:
Queue() { }
~Queue() { }
int size() const { return m_size; }
size_t size() const { return m_size; }
bool is_empty() const { return m_size == 0; }
void enqueue(T&& value)
@ -81,8 +81,8 @@ public:
private:
SinglyLinkedList<OwnPtr<Vector<T, segment_size>>> m_segments;
int m_index_into_first { 0 };
int m_size { 0 };
size_t m_index_into_first { 0 };
size_t m_size { 0 };
};
}