From e35709cbd2e0146455de51dc8e1db08b69062fae Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Wed, 15 Dec 2021 14:47:26 +0100 Subject: [PATCH] AK: Return `bool` in `JsonValue::as_bool()` --- AK/JsonValue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/JsonValue.h b/AK/JsonValue.h index 629ba77689..8f478b7793 100644 --- a/AK/JsonValue.h +++ b/AK/JsonValue.h @@ -131,7 +131,7 @@ public: return m_value.as_u64; } - int as_bool() const + bool as_bool() const { VERIFY(is_bool()); return m_value.as_bool;