mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user