From fdc1e32164d39cb8a8887c6564c8f798046eecd9 Mon Sep 17 00:00:00 2001 From: Jim Monte Date: Wed, 1 May 2019 11:21:16 +0200 Subject: [PATCH] [PATCH 4/6] Fixed Visual Studio C4456 compiler warning related to variable name hiding another variable --- src/spicelib/analysis/cktsens.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/spicelib/analysis/cktsens.c b/src/spicelib/analysis/cktsens.c index e55c20d3b..c840ff7a5 100644 --- a/src/spicelib/analysis/cktsens.c +++ b/src/spicelib/analysis/cktsens.c @@ -365,14 +365,14 @@ int sens_sens(CKTcircuit *ckt, int restart) fn = DEVices[sg->dev]->DEVsetup; if (fn) { - CKTnode *n = ckt->CKTlastNode; - /* XXXX insert old state base here ?? */ - fn (delta_Y, sg->model, ckt, &ckt->CKTnumStates); - if (n != ckt->CKTlastNode) { - fprintf(stderr, "Internal Error: node allocation in DEVsetup() during sensitivity analysis, this will cause serious troubles !, please report this issue !\n"); - controlled_exit(EXIT_FAILURE); - } - } + CKTnode *node = ckt->CKTlastNode; + /* XXXX insert old state base here ?? */ + fn (delta_Y, sg->model, ckt, &ckt->CKTnumStates); + if (node != ckt->CKTlastNode) { + fprintf(stderr, "Internal Error: node allocation in DEVsetup() during sensitivity analysis, this will cause serious troubles !, please report this issue !\n"); + controlled_exit(EXIT_FAILURE); + } + } /* ? CKTsetup would call NIreinit instead */ ckt->CKTniState = NISHOULDREORDER | NIACSHOULDREORDER;