forked from ground/ground
Fix
This commit is contained in:
@@ -1931,7 +1931,7 @@ GroundValue interpretGroundInstruction(GroundInstruction inst, GroundScope* scop
|
|||||||
} else {
|
} else {
|
||||||
GroundScope newScope = copyGroundScope(&function->closure);
|
GroundScope newScope = copyGroundScope(&function->closure);
|
||||||
for (size_t i = 0; i < function->argSize; i++) {
|
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);
|
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])) {
|
if (function->args[i].type == ANY || function->args[i].type == ANY || !checkFnTypes(&in->args.args[i + 1].value.value, &function->args[i])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user