Skip to content

Commit

Permalink
Update call.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AjaniBilby committed Apr 24, 2024
1 parent b6a0729 commit a3d62ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/compiler/codegen/expression/postfix/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function CompileCall(ctx: Context, syntax: Syntax.Term_Expr_call, operand
const stackBk = ctx.scope.register.allocate(i32.bitcode);
ctx.block.push(Instruction.global.get(stackReg));
ctx.block.push(Instruction.local.tee(stackBk.ref));
ctx.block.push(Instruction.const.i32(ctx.scope.stack.getLatentSize()));
ctx.block.push(Instruction.const.i32(ctx.scope.stack.latentSize));
ctx.block.push(Instruction.i32.add());
ctx.block.push(Instruction.global.set(stackReg));

Expand Down

0 comments on commit a3d62ef

Please sign in to comment.