diff --git a/src/spicelib/parser/inp2q.c b/src/spicelib/parser/inp2q.c index 5b2898f58..3cb9df73b 100644 --- a/src/spicelib/parser/inp2q.c +++ b/src/spicelib/parser/inp2q.c @@ -133,9 +133,10 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode) return; } #ifdef ADMS - if ((nodeflag > 4 && (thismodel->INPmodType != INPtypelook("hicum0"))) - && (nodeflag > 4 && (thismodel->INPmodType != INPtypelook("hicum2"))) - && (nodeflag > 4 && (thismodel->INPmodType != INPtypelook("bjt504t")))) + if (nodeflag > 4 && + !(thismodel->INPmodType == INPtypelook("hicum0") || + thismodel->INPmodType == INPtypelook("hicum2") || + thismodel->INPmodType == INPtypelook("bjt504t"))) { LITERR("Too much nodes for this model type"); return;