From 11f39071398cf7e25ef582ee0a30836d7d62cb61 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 10 Jul 2016 16:27:24 +0200 Subject: [PATCH] INPparseNumMod(), #4/14, assign 'lastType' sooner in the block in-between those two positions there is no access to lastType or cardType there is no 'continue' there is no 'break' out of the enclosing 'switch' thus the assignment is inevitable --- src/spicelib/parser/inpgmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index d503bb506..295417415 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -407,6 +407,7 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess } } } + lastType = cardType; if (cardType >= 0) { /* parse the rest of this line */ while (*line) { /* Strip leading carat from booleans */ @@ -450,7 +451,6 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess FREE(parm); } } - lastType = cardType; break; } }