mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
LibWeb: Convert NumberType::Integer to i64 instead of i32
This commit is contained in:
parent
f9167c9265
commit
2462fb5f0e
Notes:
sideshowbarker
2024-07-18 01:29:24 +09:00
Author: https://github.com/networkException
Commit: 2462fb5f0e
Pull-request: https://github.com/SerenityOS/serenity/pull/10792
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