mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
JsonValue: Fix wrong return type of as_u32() and friends
This commit is contained in:
parent
bc919c8432
commit
fe874bc455
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…
Add table
Add a link
Reference in a new issue