mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
LibWeb: Convert NumberType::Integer to i64 instead of i32
This commit is contained in:
parent
f9167c9265
commit
2462fb5f0e
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ public:
|
|||
i64 to_integer() const
|
||||
{
|
||||
VERIFY(m_type == Type::Number && m_number_type == NumberType::Integer);
|
||||
return number_string_value().to_int().value();
|
||||
return number_string_value().to_int<i64>().value();
|
||||
}
|
||||
bool is_integer_value_signed() const { return number_string_value().starts_with('-') || number_string_value().starts_with('+'); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue