mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
AK: Use size_t for ByteBuffer sizes
This matches what we already do for string types.
This commit is contained in:
parent
1dfc66c7cc
commit
88b9fcb976
14 changed files with 75 additions and 70 deletions
|
@ -79,9 +79,9 @@ int main(int argc, char** argv)
|
|||
|
||||
Vector<char> buffer;
|
||||
|
||||
int index = 0;
|
||||
size_t index = 0;
|
||||
|
||||
auto peek = [&](int offset = 0) -> char {
|
||||
auto peek = [&](size_t offset = 0) -> char {
|
||||
if ((index + offset) < file_contents.size())
|
||||
return file_contents[index + offset];
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue