From ceec1a7d38d4c8941dbf537b85bd50f0030ffbec Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 25 Feb 2020 14:49:47 +0100 Subject: AK: Make Vector use size_t for its size and capacity --- DevTools/HackStudio/TerminalWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DevTools/HackStudio/TerminalWrapper.cpp') diff --git a/DevTools/HackStudio/TerminalWrapper.cpp b/DevTools/HackStudio/TerminalWrapper.cpp index 3f18359e53..4adb983420 100644 --- a/DevTools/HackStudio/TerminalWrapper.cpp +++ b/DevTools/HackStudio/TerminalWrapper.cpp @@ -143,7 +143,7 @@ void TerminalWrapper::run_command(const String& command) auto parts = command.split(' '); ASSERT(!parts.is_empty()); const char** args = (const char**) calloc(parts.size() + 1, sizeof(const char*)); - for (int i = 0; i < parts.size(); i++) { + for (size_t i = 0; i < parts.size(); i++) { args[i] = parts[i].characters(); } rc = execvp(args[0], const_cast(args)); -- cgit v1.2.3