INPparseNumMod(), #9/14, invert the 'if' statement

This commit is contained in:
rlar 2016-07-10 17:25:51 +02:00
parent 1483e2df9a
commit 6b305744d9
1 changed files with 3 additions and 4 deletions

View File

@ -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;