From e57c194837f6f391c97177661005249beb76669e Mon Sep 17 00:00:00 2001 From: CPunch Date: Thu, 7 Jan 2021 20:04:42 -0600 Subject: [PATCH] minor fix for OP_INVOKE --- src/cvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cvm.c b/src/cvm.c index 580d3ad..1dcdbdf 100644 --- a/src/cvm.c +++ b/src/cvm.c @@ -772,7 +772,7 @@ int cosmoV_execute(CState *state) { cosmoT_get(&dict->tbl, constants[ident], &val); // call closure/cfunction - if (!callCValue(state, val, args, nres, -1)) + if (!callCValue(state, val, args, nres, 0)) return -1; break; }