mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
JsonValue: Fix wrong return type of as_u32() and friends
This commit is contained in:
parent
bc919c8432
commit
fe874bc455
Notes:
sideshowbarker
2024-07-19 10:52:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/fe874bc4552
1 changed files with 4 additions and 4 deletions
|
@ -101,25 +101,25 @@ public:
|
|||
return as_bool();
|
||||
}
|
||||
|
||||
int as_i32() const
|
||||
i32 as_i32() const
|
||||
{
|
||||
ASSERT(is_i32());
|
||||
return m_value.as_i32;
|
||||
}
|
||||
|
||||
int as_u32() const
|
||||
u32 as_u32() const
|
||||
{
|
||||
ASSERT(is_u32());
|
||||
return m_value.as_u32;
|
||||
}
|
||||
|
||||
int as_i64() const
|
||||
i64 as_i64() const
|
||||
{
|
||||
ASSERT(is_i64());
|
||||
return m_value.as_i64;
|
||||
}
|
||||
|
||||
int as_u64() const
|
||||
u64 as_u64() const
|
||||
{
|
||||
ASSERT(is_u64());
|
||||
return m_value.as_u64;
|
||||
|
|
Loading…
Reference in a new issue