diff --git a/src/spicelib/parser/inp2q.c b/src/spicelib/parser/inp2q.c index 8620f7331..9b4d54e14 100644 --- a/src/spicelib/parser/inp2q.c +++ b/src/spicelib/parser/inp2q.c @@ -146,7 +146,7 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode) LITERR("incorrect model type"); return; } - if (nodeflag > 4 && 4 == model_numnodes(thismodel->INPmodType)) + if (nodeflag > model_numnodes(thismodel->INPmodType)) { LITERR("Too much nodes for this model type"); return;