Skip to content

Commit

Permalink
wasm3: update argument order for host functions
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 2, 2022
1 parent 2cc87c0 commit 87c9667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils/wasm3_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ namespace
const void* env_adler32(
IM3Runtime /*runtime*/, IM3ImportContext /*context*/, uint64_t* stack, void* mem)
{
const uint32_t offset = static_cast<uint32_t>(stack[0]);
const uint32_t length = static_cast<uint32_t>(stack[1]);
const uint32_t offset = static_cast<uint32_t>(stack[1]);
const uint32_t length = static_cast<uint32_t>(stack[2]);
stack[0] = fizzy::test::adler32({reinterpret_cast<uint8_t*>(mem) + offset, length});
return m3Err_none;
}
Expand Down

0 comments on commit 87c9667

Please sign in to comment.