Skip to content

Commit

Permalink
fix(compiler): Always get little endian i64 from bytes (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Apr 5, 2021
1 parent bbdd38d commit 1b9853a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/codegen/compcore.re
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ let buf_to_ints = (buf: Buffer.t): list(int64) => {
// Clear out those uninitialized bytes
Bytes.fill(bytes, num_bytes, total_bytes - num_bytes, '\000');

List.init(num_ints, i => {Bytes.get_int64_ne(bytes, i * 8)});
List.init(num_ints, i => {Bytes.get_int64_le(bytes, i * 8)});
};

let call_lambda = (~tail=false, wasm_mod, env, func, (argsty, retty), args) => {
Expand Down

0 comments on commit 1b9853a

Please sign in to comment.