diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-20 12:54:15 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-20 13:20:34 +0100 |
commit | 88b9fcb9764bba777fe18bb28114a3743bb971a4 (patch) | |
tree | d3eb3caba906f2ec0beab721d4b69626a0b249ab /AK/BufferStream.h | |
parent | 1dfc66c7cc055d03a87f5851334c5ae2f65d1e2d (diff) | |
download | serenity-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.h | 4 |
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 }; }; |