Skip to content

Commit bba3572

Browse files
authored
[WASM ABI 1.0] Fix bytes_source_read (#1646)
1 parent c26c658 commit bba3572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core/src/host/wasmtime/wasm_instance_env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ impl WasmInstanceEnv {
848848
env.call_reducer_args = None;
849849
Ok(-1i32)
850850
} else {
851-
*cursor = can_read_len;
851+
*cursor += can_read_len;
852852
Ok(0)
853853
}
854854
})

0 commit comments

Comments
 (0)