diff --git a/src/spicelib/devices/asrc/asrcconv.c b/src/spicelib/devices/asrc/asrcconv.c index 798705f52..4264e4064 100644 --- a/src/spicelib/devices/asrc/asrcconv.c +++ b/src/spicelib/devices/asrc/asrcconv.c @@ -15,7 +15,7 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt) { ASRCmodel *model = (ASRCmodel *) inModel; ASRCinstance *here; - int i, node_num, branch; + int i; double diff; double prev; double tol; @@ -37,10 +37,10 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt) for (i = 0; i < here->ASRCtree->numVars; i++) if (here->ASRCtree->varTypes[i] == IF_INSTANCE) { - branch = CKTfndBranch(ckt, here->ASRCtree->vars[i].uValue); + int branch = CKTfndBranch(ckt, here->ASRCtree->vars[i].uValue); asrc_vals[i] = ckt->CKTrhsOld[branch]; } else { - node_num = here->ASRCtree->vars[i].nValue->number; + int node_num = here->ASRCtree->vars[i].nValue->number; asrc_vals[i] = ckt->CKTrhsOld[node_num]; } diff --git a/src/spicelib/devices/asrc/asrcfbr.c b/src/spicelib/devices/asrc/asrcfbr.c index 3c430add1..f6c224add 100644 --- a/src/spicelib/devices/asrc/asrcfbr.c +++ b/src/spicelib/devices/asrc/asrcfbr.c @@ -14,8 +14,8 @@ Author: 1987 Kanwar Jit Singh int ASRCfindBr(CKTcircuit *ckt, GENmodel *inputModel, IFuid name) { - ASRCinstance *here; ASRCmodel *model = (ASRCmodel*) inputModel; + ASRCinstance *here; int error; CKTnode *tmp;