Browse Source

fix some wrong 'double' to 'int' assignments

pre-master-46
dwarning 16 years ago
parent
commit
e923354206
  1. 4
      src/spicelib/devices/bsim3soi/b4soimask.c
  2. 2
      src/spicelib/devices/csw/cswacld.c
  3. 2
      src/spicelib/devices/csw/cswnoise.c
  4. 2
      src/spicelib/devices/csw/cswpzld.c
  5. 2
      src/spicelib/devices/mos6/mos6load.c
  6. 2
      src/spicelib/devices/soi3/soi3load.c
  7. 2
      src/spicelib/devices/sw/swnoise.c

4
src/spicelib/devices/bsim3soi/b4soimask.c

@ -1231,10 +1231,10 @@ IFvalue *value)
value->iValue = model->B4SOIrgateMod;
return(OK);
case B4SOI_MOD_XRCRG1:
value->iValue = model->B4SOIxrcrg1; /* FIXME rValue to iValue ? */
value->rValue = model->B4SOIxrcrg1; /* Changed from iValue to rvalue */
return(OK);
case B4SOI_MOD_XRCRG2:
value->iValue = model->B4SOIxrcrg2; /* FIXME rValue to iValue ? */
value->rValue = model->B4SOIxrcrg2; /* Changed from iValue to rvalue */
return(OK);
case B4SOI_MOD_RSHG:
value->rValue = model->B4SOIrshg;

2
src/spicelib/devices/csw/cswacld.c

@ -33,7 +33,7 @@ CSWacLoad(GENmodel *inModel, CKTcircuit *ckt)
here=here->CSWnextInstance) {
if (here->CSWowner != ARCHme) continue;
current_state = *(ckt->CKTstate0 + here->CSWstate);
current_state = (int)*(ckt->CKTstate0 + here->CSWstate);
g_now = current_state?(model->CSWonConduct):(model->CSWoffConduct);

2
src/spicelib/devices/csw/cswnoise.c

@ -93,7 +93,7 @@ if (!data->namelist) return(E_NOMEM);
switch (mode) {
case N_DENS:
current_state = *(ckt->CKTstate0 + inst->CSWstate);
current_state = (int)*(ckt->CKTstate0 + inst->CSWstate);
NevalSrc(&noizDens,&lnNdens,ckt,THERMNOISE,
inst->CSWposNode,inst->CSWnegNode,
current_state?(model->CSWonConduct):(model->CSWoffConduct));

2
src/spicelib/devices/csw/cswpzld.c

@ -35,7 +35,7 @@ CSWpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s)
here=here->CSWnextInstance) {
if (here->CSWowner != ARCHme) continue;
current_state = *(ckt->CKTstate0 + here->CSWstate);
current_state = (int)*(ckt->CKTstate0 + here->CSWstate);
g_now = current_state?(model->CSWonConduct):(model->CSWoffConduct);

2
src/spicelib/devices/mos6/mos6load.c

@ -82,7 +82,7 @@ MOS6load(GENmodel *inModel, CKTcircuit *ckt)
#endif /* CAPBYPASS */
int SenCond;
int m;
double m;
#ifdef CAPBYPASS
senflag = 0;

2
src/spicelib/devices/soi3/soi3load.c

@ -958,7 +958,7 @@ SOI3load(GENmodel *inModel, CKTcircuit *ckt)
double vdsat;
double Dvdsat_Dvgfb,Dvdsat_Dvsb,Dvdsat_Dvdb,Dvdsat_DdeltaT;
int m,i;
int i;
double vds2m,vdsat2m,Em,vdslim;
double Dvdslim_Dvgfb,Dvdslim_Dvdb,Dvdslim_Dvsb,Dvdslim_DdeltaT;
double Vmx;

2
src/spicelib/devices/sw/swnoise.c

@ -97,7 +97,7 @@ if (!data->namelist) return(E_NOMEM);
switch (mode) {
case N_DENS:
current_state = *(ckt->CKTstate0 + inst->SWstate);
current_state = (int)*(ckt->CKTstate0 + inst->SWstate);
NevalSrc(&noizDens,&lnNdens,ckt,THERMNOISE,
inst->SWposNode,inst->SWnegNode,
current_state?(model->SWonConduct):(model->SWoffConduct));

Loading…
Cancel
Save