frontend/define.c, ntharg(), bug fix, fix check for end of PT_OP_COMMA args list

ancient bug, yet not much of a consequence because there was already
  another check for correct arity of a function application.
("define"'ed function in the .control section)
This commit is contained in:
rlar
2015-11-10 19:44:54 +01:00
parent 5706fbd890
commit 381a690cd8
+1 -4
View File
@@ -413,11 +413,8 @@ ntharg(int num, struct pnode *args)
return args->pn_left;
return args;
}
if (args->pn_op && (args->pn_op->op_num != PT_OP_COMMA)) {
if (num <= 2)
return args;
if (!(args->pn_op && (args->pn_op->op_num == PT_OP_COMMA)))
return NULL;
}
}
return NULL;