frontend/define.c, ntharg(), #2/15 minor cleanup

This commit is contained in:
rlar 2015-10-04 19:27:35 +02:00
parent f91f8c2a09
commit 8ac0329bd9
1 changed files with 3 additions and 5 deletions

View File

@ -409,12 +409,10 @@ ntharg(int num, struct pnode *args)
{
if (num > 1)
while (--num > 0) {
if (args && args->pn_op &&
(args->pn_op->op_num != PT_OP_COMMA)) {
if (args && args->pn_op && (args->pn_op->op_num != PT_OP_COMMA)) {
if (num == 1)
break;
else
return (NULL);
return NULL;
}
if (!args)
return NULL;
@ -422,7 +420,7 @@ ntharg(int num, struct pnode *args)
}
if (args && args->pn_op && (args->pn_op->op_num == PT_OP_COMMA))
args = args->pn_left;
return args->pn_left;
return args;
}