mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-09 06:23:14 +00:00
Don't pass true for littleEndian where it's not needed.
This commit is contained in:
8
vendor/wasm/js/runtime.js
vendored
8
vendor/wasm/js/runtime.js
vendored
@@ -47,8 +47,8 @@ class WasmMemoryInterface {
|
||||
}
|
||||
|
||||
|
||||
loadU8(addr) { return this.mem.getUint8 (addr, true); }
|
||||
loadI8(addr) { return this.mem.getInt8 (addr, true); }
|
||||
loadU8(addr) { return this.mem.getUint8 (addr); }
|
||||
loadI8(addr) { return this.mem.getInt8 (addr); }
|
||||
loadU16(addr) { return this.mem.getUint16 (addr, true); }
|
||||
loadI16(addr) { return this.mem.getInt16 (addr, true); }
|
||||
loadU32(addr) { return this.mem.getUint32 (addr, true); }
|
||||
@@ -80,8 +80,8 @@ class WasmMemoryInterface {
|
||||
return new TextDecoder().decode(bytes);
|
||||
}
|
||||
|
||||
storeU8(addr, value) { this.mem.setUint8 (addr, value, true); }
|
||||
storeI8(addr, value) { this.mem.setInt8 (addr, value, true); }
|
||||
storeU8(addr, value) { this.mem.setUint8 (addr, value); }
|
||||
storeI8(addr, value) { this.mem.setInt8 (addr, value); }
|
||||
storeU16(addr, value) { this.mem.setUint16 (addr, value, true); }
|
||||
storeI16(addr, value) { this.mem.setInt16 (addr, value, true); }
|
||||
storeU32(addr, value) { this.mem.setUint32 (addr, value, true); }
|
||||
|
||||
Reference in New Issue
Block a user