summaryrefslogtreecommitdiff
path: root/DevTools/IPCCompiler/main.cpp
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 /DevTools/IPCCompiler/main.cpp
parent1dfc66c7cc055d03a87f5851334c5ae2f65d1e2d (diff)
downloadserenity-88b9fcb9764bba777fe18bb28114a3743bb971a4.zip
AK: Use size_t for ByteBuffer sizes
This matches what we already do for string types.
Diffstat (limited to 'DevTools/IPCCompiler/main.cpp')
-rw-r--r--DevTools/IPCCompiler/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/IPCCompiler/main.cpp b/DevTools/IPCCompiler/main.cpp
index d495f2efed..26edb81709 100644
--- a/DevTools/IPCCompiler/main.cpp
+++ b/DevTools/IPCCompiler/main.cpp
@@ -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;