From ead5cdc299c2505010451552a551c4ed19722023 Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sat, 11 Apr 2026 19:52:24 +1000 Subject: [PATCH] Fix -any again --- src/interpreter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interpreter.c b/src/interpreter.c index a4562fe..8498e29 100644 --- a/src/interpreter.c +++ b/src/interpreter.c @@ -1900,7 +1900,7 @@ GroundValue interpretGroundInstruction(GroundInstruction inst, GroundScope* scop runtimeError(ARG_TYPE_MISMATCH, "Expecting a Value", in, currentInstruction); } if (function->nativeFn) { - if (function->args[i].type != ANY || in->args.args[i + 1].value.value.type != function->args[i].type) { + if (function->args[i].type != ANY && in->args.args[i + 1].value.value.type != function->args[i].type) { runtimeError(ARG_TYPE_MISMATCH, "Mismatched function argument types", in, currentInstruction); } } else { @@ -2004,7 +2004,7 @@ GroundValue interpretGroundInstruction(GroundInstruction inst, GroundScope* scop runtimeError(ARG_TYPE_MISMATCH, "Expecting a Value", in, currentInstruction); } if (function->nativeFn) { - if (function->args[i].type != ANY || in->args.args[i + 2].value.value.type != function->args[i].type) { + if (function->args[i].type != ANY && in->args.args[i + 2].value.value.type != function->args[i].type) { runtimeError(ARG_TYPE_MISMATCH, "Mismatched function argument types", in, currentInstruction); } } else {