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

AK: Use size_t for ByteBuffer sizes

This matches what we already do for string types.
This commit is contained in:
Andreas Kling 2020-02-20 12:54:15 +01:00
parent 1dfc66c7cc
commit 88b9fcb976
14 changed files with 75 additions and 70 deletions

View file

@ -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 };
};