Skip to content

Commit 72b8d96

Browse files
committed
wasm3: update argument order for host functions
1 parent 4ddaa45 commit 72b8d96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/utils/wasm3_engine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ namespace
4242
const void* env_adler32(
4343
IM3Runtime /*runtime*/, IM3ImportContext /*context*/, uint64_t* stack, void* mem) noexcept
4444
{
45-
const uint32_t offset = static_cast<uint32_t>(stack[0]);
46-
const uint32_t length = static_cast<uint32_t>(stack[1]);
45+
const uint32_t offset = static_cast<uint32_t>(stack[1]);
46+
const uint32_t length = static_cast<uint32_t>(stack[2]);
4747
stack[0] = fizzy::test::adler32({reinterpret_cast<uint8_t*>(mem) + offset, length});
4848
return m3Err_none;
4949
}

0 commit comments

Comments
 (0)