Browse Source

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

pre-master-46
rlar 10 years ago
parent
commit
18d6679c02
  1. 3
      src/spicelib/parser/inpgmod.c

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

Loading…
Cancel
Save