mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibJS: Change PropertyName::as_number() return type to u32
This is how it's stored internally - even though we still only construct from i32. I had the compiler yell at me while trying something with this and didn't want to add yet another cast, so let's quickly fix this.
This commit is contained in:
parent
c61de8e4be
commit
aef502e8e0
Notes:
sideshowbarker
2024-07-18 19:05:22 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ public:
|
|||
bool is_string() const { return m_type == Type::String; }
|
||||
bool is_symbol() const { return m_type == Type::Symbol; }
|
||||
|
||||
i32 as_number() const
|
||||
u32 as_number() const
|
||||
{
|
||||
VERIFY(is_number());
|
||||
return m_number;
|
||||
|
|
Loading…
Reference in a new issue