From 7862a4f59f44fcc2c128b640f2e2f75cddad3e2c Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 10 Jul 2016 17:09:49 +0200 Subject: [PATCH] INPparseNumMod(), #3/14, `continue' the loop instead of 'break'ing out of the `switch' this is equivalent because the 'switch' is the last statement in the loop body --- src/spicelib/parser/inpgmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index 653595299..d503bb506 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -364,7 +364,7 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess case '\n': /* comment or empty cards */ lastType = E_MISSING; - break; + continue; case '+': /* continuation card */ if (lastType >= 0) { @@ -375,7 +375,7 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess cardNum); err = INPerrCat(err,tmp); lastType = E_MISSING; - break; + continue; } /* FALL THRU when continuing a card */ default: