summaryrefslogtreecommitdiff
path: root/AK/BufferStream.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-20 12:54:15 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-20 13:20:34 +0100
commit88b9fcb9764bba777fe18bb28114a3743bb971a4 (patch)
treed3eb3caba906f2ec0beab721d4b69626a0b249ab /AK/BufferStream.h
parent1dfc66c7cc055d03a87f5851334c5ae2f65d1e2d (diff)
downloadserenity-88b9fcb9764bba777fe18bb28114a3743bb971a4.zip
AK: Use size_t for ByteBuffer sizes
This matches what we already do for string types.
Diffstat (limited to 'AK/BufferStream.h')
-rw-r--r--AK/BufferStream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/BufferStream.h b/AK/BufferStream.h
index b9f2990877..2e2e6bac17 100644
--- a/AK/BufferStream.h
+++ b/AK/BufferStream.h
@@ -311,7 +311,7 @@ public:
BufferStream& operator<<(const ByteBuffer& value)
{
- for (ssize_t i = 0; i < value.size(); ++i)
+ for (size_t i = 0; i < value.size(); ++i)
m_buffer[m_offset++] = value[i];
return *this;
}
@@ -349,7 +349,7 @@ public:
private:
ByteBuffer& m_buffer;
- ssize_t m_offset { 0 };
+ size_t m_offset { 0 };
bool m_read_failure { false };
};