From 78cb65eef60760fa5d7228c13c871f9d97a361c4 Mon Sep 17 00:00:00 2001 From: dwarning Date: Tue, 6 Dec 2005 19:58:46 +0000 Subject: [PATCH] Var tmp should be int. --- ChangeLog | 5 +++++ src/spicelib/devices/hisim/hsm1ld.c | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index dcaa1ecf0..4a4a2cab4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-06 Dietmar Warning + + * src/spicelib/devices/hisim/hsm1ld.c: Variable tmp is really used only + for flag swapping - because make she int. Some better reading in comments. + 2005-12-04 Paolo Nenzi * src/spicelib/devices/bsim4/b4ld.c: As written by Dietmar, the changes diff --git a/src/spicelib/devices/hisim/hsm1ld.c b/src/spicelib/devices/hisim/hsm1ld.c index efb845b3b..60a4d10f7 100644 --- a/src/spicelib/devices/hisim/hsm1ld.c +++ b/src/spicelib/devices/hisim/hsm1ld.c @@ -168,10 +168,12 @@ int HSM1load(GENmodel *inModel, register CKTcircuit *ckt) #ifndef NOBYPASS double tempv; #endif /*NOBYPASS*/ - double tmp; + int tmp; +/* spice3f4 defined NEWCONV by default, looking to niconv.c #ifndef NEWCONV double tol, tol2, tol3, tol4; #endif +*/ int ChargeComputationNeeded = ((ckt->CKTmode & (MODEAC | MODETRAN | MODEINITSMSIG)) || ((ckt->CKTmode & MODETRANOP) && (ckt->CKTmode & MODEUIC))) @@ -384,7 +386,7 @@ int HSM1load(GENmodel *inModel, register CKTcircuit *ckt) } #endif /*NOBYPASS*/ - /* von = model->HSM1_type * here->HSM1_von;*/ + /* von = model->HSM1_type * here->HSM1_von; */ von = here->HSM1_von; if(*(ckt->CKTstate0 + here->HSM1vds) >= 0.0) { vgs = DEVfetlim(vgs, *(ckt->CKTstate0 + here->HSM1vgs), von); @@ -581,9 +583,10 @@ int HSM1load(GENmodel *inModel, register CKTcircuit *ckt) /* sMS.ims[0] = 0; sMS.dms[0] = 0.0e0; - sMS.ims[1] = 0; */ - /* sMS.dms[1] = pslot->timepoint; I don't know - * no use in SPICE3f5 */ + sMS.ims[1] = 0; + sMS.dms[1] = pslot->timepoint; I don't know + * no use in SPICE3f5 + */ if ( ! strcmp(here->HSM1_called, "yes" ) ) { sIN.has_prv = 1;