summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-25 14:55:04 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-25 14:55:04 +0100
commitfbe4081f4bebf90cd82827bd3ae27887518d6136 (patch)
tree5a703559ff48feebe28ceb023bae6a1936b69247 /AK
parentceec1a7d38d4c8941dbf537b85bd50f0030ffbec (diff)
downloadserenity-fbe4081f4bebf90cd82827bd3ae27887518d6136.zip
AK: Make Queue use size_t for its size
Diffstat (limited to 'AK')
-rw-r--r--AK/Queue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/AK/Queue.h b/AK/Queue.h
index 7d67254572..f686fab6e0 100644
--- a/AK/Queue.h
+++ b/AK/Queue.h
@@ -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 };
};
}