frontend/define.c, ntharg(), #13/15 delay `num--' a bit

This commit is contained in:
rlar 2015-10-04 19:51:34 +02:00
parent 06b6237199
commit 101b5ada81
1 changed files with 2 additions and 2 deletions

View File

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