Index: src/interpreter/bytecodes.cc |
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc |
index 8b99f4fb1ce97bc46763a45d71e85117ae015a86..ccb340273d532c49bfa45a3c46c2ab0857ffea90 100644 |
--- a/src/interpreter/bytecodes.cc |
+++ b/src/interpreter/bytecodes.cc |
@@ -183,13 +183,13 @@ bool Bytecodes::IsJumpConstant(Bytecode bytecode) { |
// static |
uint16_t Bytecodes::ShortOperandFromBytes(const uint8_t* bytes) { |
- return *reinterpret_cast<const uint16_t*>(bytes); |
+ return ReadShortValue(bytes); |
rmcilroy
2015/11/05 18:12:01
Could you call this ReadUnalignedUInt16 and get ri
akos.palfi.imgtec
2015/11/05 23:18:00
Done.
|
} |
// static |
void Bytecodes::ShortOperandToBytes(uint16_t operand, uint8_t* bytes_out) { |
- *reinterpret_cast<uint16_t*>(bytes_out) = operand; |
+ WriteShortValue(bytes_out, operand); |
} |