From b43a98e0c97dbc2ca684e4a2962bdd5ae6b3d4fe Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 23 Jul 2016 17:03:23 +0200 Subject: [PATCH] dctrcurv.c, #2/7, use 'j' here for simplicity --- src/spicelib/analysis/dctrcurv.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/spicelib/analysis/dctrcurv.c b/src/spicelib/analysis/dctrcurv.c index 6e8d3a15d..e55b45bcf 100644 --- a/src/spicelib/analysis/dctrcurv.c +++ b/src/spicelib/analysis/dctrcurv.c @@ -84,9 +84,8 @@ DCtrCurv(CKTcircuit *ckt, int restart) ckt->CKTorder = 1; /* Save the state of the circuit */ - for (i = 0; i < 7; i++) { - ckt->CKTdeltaOld[i] = ckt->CKTdelta; - } + for (j = 0; j < 7; j++) + ckt->CKTdeltaOld[j] = ckt->CKTdelta; for (i = 0; i <= job->TRCVnestLevel; i++) { @@ -320,9 +319,8 @@ DCtrCurv(CKTcircuit *ckt, int restart) /* Rotate state vectors. */ temp = ckt->CKTstates[ckt->CKTmaxOrder + 1]; - for (j = ckt->CKTmaxOrder; j >= 0; j--) { + for (j = ckt->CKTmaxOrder; j >= 0; j--) ckt->CKTstates[j + 1] = ckt->CKTstates[j]; - } ckt->CKTstate0 = temp; /* do operation */