From 18d6679c02a6531487e8a28970b2ecefcfa7105c Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 10 Jul 2016 16:43:44 +0200 Subject: [PATCH] INPparseNumMod(), #5/14, use 'lastType' instead of the identical 'cardType' --- src/spicelib/parser/inpgmod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index 295417415..638019417 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -408,7 +408,8 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess } } lastType = cardType; - if (cardType >= 0) { /* parse the rest of this line */ + // cardType is not used downwards from here + if (lastType >= 0) { /* parse the rest of this line */ while (*line) { /* Strip leading carat from booleans */ if (*line == '^') {