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
This commit is contained in:
rlar 2016-07-10 16:27:24 +02:00
parent 7862a4f59f
commit 11f3907139
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}