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;
|
continue;
|
||||||
case '+':
|
case '+':
|
||||||
/* continuation card */
|
/* continuation card */
|
||||||
if (lastType >= 0) {
|
if (lastType < 0) {
|
||||||
cardType = lastType;
|
|
||||||
while (*line == '+') line++; /* Skip leading '+'s */
|
|
||||||
} else {
|
|
||||||
tmp = tprintf("Error on card %d : illegal continuation \'+\' - ignored",
|
tmp = tprintf("Error on card %d : illegal continuation \'+\' - ignored",
|
||||||
cardNum);
|
cardNum);
|
||||||
err = INPerrCat(err,tmp);
|
err = INPerrCat(err,tmp);
|
||||||
lastType = E_MISSING;
|
lastType = E_MISSING;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
cardType = lastType;
|
||||||
|
while (*line == '+') line++; /* Skip leading '+'s */
|
||||||
/* FALL THRU when continuing a card */
|
/* FALL THRU when continuing a card */
|
||||||
default:
|
default:
|
||||||
lastType = cardType;
|
lastType = cardType;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue