Var tmp should be int.

This commit is contained in:
dwarning 2005-12-06 19:58:46 +00:00
parent 5e1ebed38b
commit 78cb65eef6
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2005-12-06 Dietmar Warning <warning@danalyse.de>
* 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 <p.nenzi@ieee.org>
* src/spicelib/devices/bsim4/b4ld.c: As written by Dietmar, the changes

View File

@ -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;