From 93c69898904b020a818366812f2cd6c62094a3a2 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sat, 11 Apr 2026 19:26:55 +1000 Subject: [PATCH] Fix --- src/interpreter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter.c b/src/interpreter.c index 023b597..3c199c9 100644 --- a/src/interpreter.c +++ b/src/interpreter.c @@ -1931,7 +1931,7 @@ GroundValue interpretGroundInstruction(GroundInstruction inst, GroundScope* scop } else { GroundScope newScope = copyGroundScope(&function->closure); for (size_t i = 0; i < function->argSize; i++) { - if (function->args[i].type == ANY || in->args.args[i + 1].type != VALUE) { + if (in->args.args[i + 1].type != VALUE) { runtimeError(ARG_TYPE_MISMATCH, "Expecting a Value", in, currentInstruction); } if (function->args[i].type == ANY || function->args[i].type == ANY || !checkFnTypes(&in->args.args[i + 1].value.value, &function->args[i])) {