summaryrefslogtreecommitdiff
path: root/AK/JsonValue.h
diff options
context:
space:
mode:
authorJean-Baptiste Boric <jblbeurope@gmail.com>2021-03-17 18:19:30 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-17 23:22:42 +0100
commit7ffc6c371a61b30add68bf29a24403dcd14cfcbf (patch)
treedf5be309c2ad1190cc8f46d5313d84623680efd9 /AK/JsonValue.h
parentb896d58d1f333b419f311e2b7c24c99cc2e4606a (diff)
downloadserenity-7ffc6c371a61b30add68bf29a24403dcd14cfcbf.zip
AK: Add 64 bit methods to JsonValue
Diffstat (limited to 'AK/JsonValue.h')
-rw-r--r--AK/JsonValue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/AK/JsonValue.h b/AK/JsonValue.h
index 36e8b9bfd9..79e4876ceb 100644
--- a/AK/JsonValue.h
+++ b/AK/JsonValue.h
@@ -114,9 +114,11 @@ public:
int to_int(int default_value = 0) const { return to_i32(default_value); }
i32 to_i32(i32 default_value = 0) const { return to_number<i32>(default_value); }
+ i64 to_i64(i64 default_value = 0) const { return to_number<i64>(default_value); }
unsigned to_uint(unsigned default_value = 0) const { return to_u32(default_value); }
u32 to_u32(u32 default_value = 0) const { return to_number<u32>(default_value); }
+ u64 to_u64(u64 default_value = 0) const { return to_number<u64>(default_value); }
bool to_bool(bool default_value = false) const
{