Browse Source

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
pre-master-46
rlar 10 years ago
parent
commit
11f3907139
  1. 2
      src/spicelib/parser/inpgmod.c

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

Loading…
Cancel
Save