Skip to content

Commit

Permalink
Fix ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubark committed Jul 10, 2024
1 parent 0a37853 commit e998e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2215,7 +2215,7 @@ pub fn call(vm: *VM, pc: [*]cy.Inst, framePtr: [*]Value, callee: Value, ret: u8,
}

const final_ret: u8 = @intCast(ret + 5 + obj.hostFunc.numParams);
_ = try preCallDyn(vm, pc, framePtr, numArgs, ret, final_ret, obj.lambda.stackSize, obj.hostFunc.reqCallTypeCheck, obj.hostFunc.funcSigId, cont);
_ = try preCallDyn(vm, pc, framePtr, numArgs, ret, final_ret, @intCast(5 + obj.hostFunc.numParams), obj.hostFunc.reqCallTypeCheck, obj.hostFunc.funcSigId, cont);

vm.c.pc = pc;
vm.c.framePtr = framePtr + final_ret;
Expand Down Expand Up @@ -2719,7 +2719,7 @@ fn callMethod(
vm.c.trace_indent -= 1;
};
const final_ret = ret + 5 + func.nparams;
_ = try preCallObjSym(vm, pc, fp, nargs, ret, final_ret, @intCast(func.data.func.stackSize), func.req_type_check, func.sig);
_ = try preCallObjSym(vm, pc, fp, nargs, ret, final_ret, 5 + func.nparams, func.req_type_check, func.sig);

// Optimize.
// TODO: callObjHostFuncIC (rt args typecheck) or callObjHostFuncNoCheckIC
Expand Down

0 comments on commit e998e06

Please sign in to comment.