Skip to content

Commit

Permalink
Update native/wasmex/src/instance.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
tessi authored Jul 12, 2024
1 parent 114c26d commit b493c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/wasmex/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ fn decode_term_as_wasm_value(expected_type: ValType, term: Term) -> Option<WasmV
return None;
}

// prepend 0 bytes to make it 16 bytes long, since to_bytes_be() only returns the bytes that are not 0
// prepend 0 bytes to make it 16 bytes long. `to_bytes_be()` only returns leading non-zero bytes
while bytes_vec.len() < 16 {
bytes_vec.insert(0, 0);
}
Expand Down

0 comments on commit b493c8d

Please sign in to comment.