Browse Source

INPparseNumMod(), #10/14, don't fall through into the 'default:'

instead, duplicate the code of the 'default:' and break
pre-master-46
rlar 10 years ago
parent
commit
521fd16c11
  1. 4
      src/spicelib/parser/inpgmod.c

4
src/spicelib/parser/inpgmod.c

@ -376,7 +376,9 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess
}
cardType = lastType;
while (*line == '+') line++; /* Skip leading '+'s */
/* FALL THRU when continuing a card */
lastType = cardType;
// cardType is not used downwards from here
break;
default:
lastType = cardType;
// cardType is not used downwards from here

Loading…
Cancel
Save