diff --git a/src/interpreter/bytecode-array-writer.cc b/src/interpreter/bytecode-array-writer.cc index 02948dc5af..fb3876819e 100644 --- a/src/interpreter/bytecode-array-writer.cc +++ b/src/interpreter/bytecode-array-writer.cc @@ -125,8 +125,8 @@ void BytecodeArrayWriter::EmitBytecode(const BytecodeNode* const node) { bytecodes()->push_back(static_cast(operands[i])); break; case OperandSize::kShort: { - const uint8_t* raw_operand = - reinterpret_cast(&operands[i]); + uint16_t operand = static_cast(operands[i]); + const uint8_t* raw_operand = reinterpret_cast(&operand); bytecodes()->push_back(raw_operand[0]); bytecodes()->push_back(raw_operand[1]); break;