From f57c57966bb560a7090f4da528e5486d4c4de3f6 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 25 Apr 2021 23:40:22 +0200 Subject: [PATCH] AK: Fix argument type for JsonArray::at and JsonArray::operator[] --- AK/JsonArray.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/JsonArray.h b/AK/JsonArray.h index 0034afcbc5..82aec9c799 100644 --- a/AK/JsonArray.h +++ b/AK/JsonArray.h @@ -51,8 +51,8 @@ public: int size() const { return m_values.size(); } bool is_empty() const { return m_values.is_empty(); } - const JsonValue& at(int index) const { return m_values.at(index); } - const JsonValue& operator[](int index) const { return at(index); } + const JsonValue& at(size_t index) const { return m_values.at(index); } + const JsonValue& operator[](size_t index) const { return at(index); } void clear() { m_values.clear(); } void append(JsonValue value) { m_values.append(move(value)); }