We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ddaa45 commit 72b8d96Copy full SHA for 72b8d96
1 file changed
test/utils/wasm3_engine.cpp
@@ -42,8 +42,8 @@ namespace
42
const void* env_adler32(
43
IM3Runtime /*runtime*/, IM3ImportContext /*context*/, uint64_t* stack, void* mem) noexcept
44
{
45
- const uint32_t offset = static_cast<uint32_t>(stack[0]);
46
- 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]);
47
stack[0] = fizzy::test::adler32({reinterpret_cast<uint8_t*>(mem) + offset, length});
48
return m3Err_none;
49
}
0 commit comments