This commit is contained in:
nora 2023-07-29 21:32:35 +02:00
parent 761f78de0b
commit 09ae6cbb56
5 changed files with 6 additions and 7 deletions

View file

@ -629,7 +629,7 @@ function addRt(cx: Context, ast: Ast) {
{ kind: "local.get", imm: 0 },
{ kind: "i32.store", imm: { offset: 0, align: 4 } },
// get the length and store it in the iovec
{ kind: "i32.const", imm: iovecArray + 4 },
{ kind: "i32.const", imm: iovecArray + 4 },
{ kind: "local.get", imm: 1 },
{ kind: "i32.store", imm: { offset: 0, align: 4 } },
// now call stuff