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:
parent
5706fbd890
commit
381a690cd8
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue