fix commit: inp2q.c, #18/23, rewrite, combine two 'for' loop's
which replaced a INPgetNetTok() by INPgetTok() causing a bug when handling special node names for example this case q1 /c /c 0 npnmodel
This commit is contained in:
parent
2b17f3292d
commit
9ddd1d7d40
|
|
@ -65,7 +65,7 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode)
|
|||
|
||||
for (i = 0; ; i++) {
|
||||
char *token;
|
||||
INPgetTok(&line, &token, 1);
|
||||
INPgetNetTok(&line, &token, 1);
|
||||
if (i >= 3 && INPlookMod(token)) {
|
||||
INPinsert(&token, tab);
|
||||
txfree(INPgetMod(ckt, token, &thismodel, tab));
|
||||
|
|
|
|||
Loading…
Reference in New Issue