Index: src/wasm/encoder.cc |
diff --git a/src/wasm/encoder.cc b/src/wasm/encoder.cc |
index d8d36338b127fba815904d994b2de07f17192b5a..dfdc6cf6c3fde39e9ba027936b6a280386606cba 100644 |
--- a/src/wasm/encoder.cc |
+++ b/src/wasm/encoder.cc |
@@ -30,13 +30,13 @@ void EmitUint8(byte** b, uint8_t x) { |
void EmitUint16(byte** b, uint16_t x) { |
- Memory::uint16_at(*b) = x; |
+ WriteUnalignedUInt16(*b, x); |
*b += 2; |
} |
void EmitUint32(byte** b, uint32_t x) { |
- Memory::uint32_at(*b) = x; |
+ WriteUnalignedUInt32(*b, x); |
*b += 4; |
} |