From c82a9dd87e92e966862a23d3368199d6aa7155f2 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 9 Mar 2017 21:39:35 +0100 Subject: [PATCH] inp2q.c, #6/23, transform boolean expression Note: both values range over {4,5} Thus, this is a functional invariant transformation --- src/spicelib/parser/inp2q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;