INPparseNumMod(), #5/14, use 'lastType' instead of the identical 'cardType'

This commit is contained in:
rlar 2016-07-10 16:43:44 +02:00
parent 11f3907139
commit 18d6679c02
1 changed files with 2 additions and 1 deletions

View File

@ -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 == '^') {