| Index: src/interpreter/bytecode-array-writer.cc
|
| diff --git a/src/interpreter/bytecode-array-writer.cc b/src/interpreter/bytecode-array-writer.cc
|
| index 02948dc5af895c445f79eb775e933adb86ee71a3..fb3876819e4cbf0c2efc3678f091196e4caef04a 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<uint8_t>(operands[i]));
|
| break;
|
| case OperandSize::kShort: {
|
| - const uint8_t* raw_operand =
|
| - reinterpret_cast<const uint8_t*>(&operands[i]);
|
| + uint16_t operand = static_cast<uint16_t>(operands[i]);
|
| + const uint8_t* raw_operand = reinterpret_cast<const uint8_t*>(&operand);
|
| bytecodes()->push_back(raw_operand[0]);
|
| bytecodes()->push_back(raw_operand[1]);
|
| break;
|
|
|