Browse Source

inp2q.c, #6/23, transform boolean expression

Note: both values range over {4,5}
Thus, this is a functional invariant transformation
pre-master-46
rlar 9 years ago
parent
commit
c82a9dd87e
  1. 2
      src/spicelib/parser/inp2q.c

2
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;

Loading…
Cancel
Save