INPparseNumMod(), #9/14, invert the 'if' statement
This commit is contained in:
parent
1483e2df9a
commit
6b305744d9
|
|
@ -367,16 +367,15 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess
|
|||
continue;
|
||||
case '+':
|
||||
/* continuation card */
|
||||
if (lastType >= 0) {
|
||||
cardType = lastType;
|
||||
while (*line == '+') line++; /* Skip leading '+'s */
|
||||
} else {
|
||||
if (lastType < 0) {
|
||||
tmp = tprintf("Error on card %d : illegal continuation \'+\' - ignored",
|
||||
cardNum);
|
||||
err = INPerrCat(err,tmp);
|
||||
lastType = E_MISSING;
|
||||
continue;
|
||||
}
|
||||
cardType = lastType;
|
||||
while (*line == '+') line++; /* Skip leading '+'s */
|
||||
/* FALL THRU when continuing a card */
|
||||
default:
|
||||
lastType = cardType;
|
||||
|
|
|
|||
Loading…
Reference in New Issue