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 Jan 6, 2023
1 parent f039c80 commit b672801
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) noexcept
{
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 b672801

Please sign in to comment.