fix some wrong 'double' to 'int' assignments
This commit is contained in:
parent
02e4a4f32b
commit
e923354206
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ MOS6load(GENmodel *inModel, CKTcircuit *ckt)
|
|||
#endif /* CAPBYPASS */
|
||||
int SenCond;
|
||||
|
||||
int m;
|
||||
double m;
|
||||
|
||||
#ifdef CAPBYPASS
|
||||
senflag = 0;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue