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-10-04 20:10:56 +02:00
parent 5706fbd890
commit 381a690cd8
1 changed files with 1 additions and 4 deletions

View File

@ -413,11 +413,8 @@ ntharg(int num, struct pnode *args)
return args->pn_left; return args->pn_left;
return args; return args;
} }
if (args->pn_op && (args->pn_op->op_num != PT_OP_COMMA)) { if (!(args->pn_op && (args->pn_op->op_num == PT_OP_COMMA)))
if (num <= 2)
return args;
return NULL; return NULL;
}
} }
return NULL; return NULL;