diff options
author | Max Wipfli <mail@maxwipfli.ch> | 2021-06-28 11:57:37 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-29 13:18:03 +0200 |
commit | f45273649f3af96bc756a98f33b7e963945830a1 (patch) | |
tree | 706e3aabd3189821c058b285a005c174ffef864f /Userland/Utilities/gron.cpp | |
parent | 66526cbbaf4411af89bf96ab44ba6a7f58f3eaea (diff) | |
download | serenity-f45273649f3af96bc756a98f33b7e963945830a1.zip |
AK+Everywhere: Change int to size_t in JsonObject and JsonArray
Diffstat (limited to 'Userland/Utilities/gron.cpp')
-rw-r--r-- | Userland/Utilities/gron.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/gron.cpp b/Userland/Utilities/gron.cpp index b24eabd3eb..c0ca58f2d0 100644 --- a/Userland/Utilities/gron.cpp +++ b/Userland/Utilities/gron.cpp @@ -112,7 +112,7 @@ static void print(const String& name, const JsonValue& value, Vector<String>& tr if (value.is_array()) { outln("{}[]{};", color_brace, color_off); trail.append(String::formatted("{}{}{}", color_name, name, color_off)); - for (int i = 0; i < value.as_array().size(); ++i) { + for (size_t i = 0; i < value.as_array().size(); ++i) { auto element_name = String::formatted("{}{}[{}{}{}{}{}]{}", color_off, color_brace, color_off, color_index, i, color_off, color_brace, color_off); print(element_name, value.as_array()[i], trail); } |