From 68507b7e55001dc4a559c57bc3abc630bf682f0d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 May 2024 13:34:50 +0200 Subject: [PATCH] LibJS/Bytecode: Store SetLocal's local index as a u32 Same size as local indexes everywhere else. --- Userland/Libraries/LibJS/Bytecode/Op.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Bytecode/Op.h b/Userland/Libraries/LibJS/Bytecode/Op.h index a18b69f7ea2..2cd56c11313 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.h +++ b/Userland/Libraries/LibJS/Bytecode/Op.h @@ -554,12 +554,12 @@ public: ThrowCompletionOr execute_impl(Bytecode::Interpreter&) const; ByteString to_byte_string_impl(Bytecode::Executable const&) const; - size_t index() const { return m_index; } + u32 index() const { return m_index; } Operand dst() const { return Operand(Operand::Type::Local, m_index); } Operand src() const { return m_src; } private: - size_t m_index; + u32 m_index; Operand m_src; };