From f45273649f3af96bc756a98f33b7e963945830a1 Mon Sep 17 00:00:00 2001 From: Max Wipfli Date: Mon, 28 Jun 2021 11:57:37 +0200 Subject: AK+Everywhere: Change int to size_t in JsonObject and JsonArray --- Userland/Utilities/gron.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Utilities/gron.cpp') 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& 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); } -- cgit v1.2.3