diff --git a/src/spicelib/devices/mos1/mos1sacl.c b/src/spicelib/devices/mos1/mos1sacl.c index 03f8272b5..5f435a299 100644 --- a/src/spicelib/devices/mos1/mos1sacl.c +++ b/src/spicelib/devices/mos1/mos1sacl.c @@ -637,7 +637,7 @@ load: for(iparmno = 1;iparmno<=info->SENparms;iparmno++){ if((flag == 4) && (iparmno != here->MOS1senParmNo)) continue; if( (flag == 5) && (iparmno != (here->MOS1senParmNo + - here->MOS1sens_l))) continue; + (int) here->MOS1sens_l))) continue; switch(flag){ case 1: diff --git a/src/spicelib/devices/mos1/mos1sld.c b/src/spicelib/devices/mos1/mos1sld.c index f2240b289..6e9459707 100644 --- a/src/spicelib/devices/mos1/mos1sld.c +++ b/src/spicelib/devices/mos1/mos1sld.c @@ -538,8 +538,9 @@ next1: Osxpbd -= tag0 * *(here->MOS1dphibd_dl); Osxpgb -= tag0 * *(here->MOS1dphigb_dl); } - if(here->MOS1sens_w && - (iparmno == (here->MOS1senParmNo + here->MOS1sens_l))){ + if(here->MOS1sens_w && + (iparmno == (here->MOS1senParmNo + + (int) here->MOS1sens_l))){ Osxpgs -= tag0 * *(here->MOS1dphigs_dw); Osxpgd -= tag0 * *(here->MOS1dphigd_dw); Osxpbs -= tag0 * *(here->MOS1dphibs_dw); diff --git a/src/spicelib/devices/mos1/mos1supd.c b/src/spicelib/devices/mos1/mos1supd.c index 2df92a6b3..c852aab49 100644 --- a/src/spicelib/devices/mos1/mos1supd.c +++ b/src/spicelib/devices/mos1/mos1supd.c @@ -94,8 +94,9 @@ MOS1sUpdate(GENmodel *inModel, CKTcircuit *ckt) sxpbd += *(here->MOS1dphibd_dl); sxpgb += *(here->MOS1dphigb_dl); } - if(here->MOS1sens_w && - (iparmno == (here->MOS1senParmNo+here->MOS1sens_l))){ + if(here->MOS1sens_w && + (iparmno == (here->MOS1senParmNo + + (int) here->MOS1sens_l))){ sxpgs += *(here->MOS1dphigs_dw); sxpgd += *(here->MOS1dphigd_dw); sxpbs += *(here->MOS1dphibs_dw); diff --git a/src/spicelib/devices/mos2/mos2sacl.c b/src/spicelib/devices/mos2/mos2sacl.c index 67f117721..4b2561c49 100644 --- a/src/spicelib/devices/mos2/mos2sacl.c +++ b/src/spicelib/devices/mos2/mos2sacl.c @@ -634,7 +634,7 @@ load: for(iparmno = 1;iparmno<=info->SENparms;iparmno++){ if ((flag == 4) || (iparmno != here->MOS2senParmNo) ) continue; if ((flag == 5) || (iparmno != (here->MOS2senParmNo + - here->MOS2sens_l)) ) continue; + (int) here->MOS2sens_l)) ) continue; switch(flag){ case 1: DvDp = model->MOS2type * diff --git a/src/spicelib/devices/mos2/mos2sld.c b/src/spicelib/devices/mos2/mos2sld.c index 0cf2c711f..84c213ce0 100644 --- a/src/spicelib/devices/mos2/mos2sld.c +++ b/src/spicelib/devices/mos2/mos2sld.c @@ -536,8 +536,9 @@ next1: Osxpbd -= tag0 * *(here->MOS2dphibd_dl); Osxpgb -= tag0 * *(here->MOS2dphigb_dl); } - if(here->MOS2sens_w && - (iparmno == (here->MOS2senParmNo + here->MOS2sens_l))){ + if(here->MOS2sens_w && + (iparmno == (here->MOS2senParmNo + + (int) here->MOS2sens_l))){ Osxpgs -= tag0 * *(here->MOS2dphigs_dw); Osxpgd -= tag0 * *(here->MOS2dphigd_dw); Osxpbs -= tag0 * *(here->MOS2dphibs_dw); diff --git a/src/spicelib/devices/mos2/mos2supd.c b/src/spicelib/devices/mos2/mos2supd.c index 5a1a78031..85c19481f 100644 --- a/src/spicelib/devices/mos2/mos2supd.c +++ b/src/spicelib/devices/mos2/mos2supd.c @@ -95,7 +95,8 @@ MOS2sUpdate(GENmodel *inModel, CKTcircuit *ckt) sxpgb += *(here->MOS2dphigb_dl); } if(here->MOS2sens_w && - (iparmno == (here->MOS2senParmNo+here->MOS2sens_l))){ + (iparmno == (here->MOS2senParmNo + + (int) here->MOS2sens_l))){ sxpgs += *(here->MOS2dphigs_dw); sxpgd += *(here->MOS2dphigd_dw); sxpbs += *(here->MOS2dphibs_dw); diff --git a/src/spicelib/devices/mos3/mos3sacl.c b/src/spicelib/devices/mos3/mos3sacl.c index 0e74295ed..d4a14aa98 100644 --- a/src/spicelib/devices/mos3/mos3sacl.c +++ b/src/spicelib/devices/mos3/mos3sacl.c @@ -637,8 +637,8 @@ load: #endif /* SENSDEBUG */ for(iparmno = 1;iparmno<=info->SENparms;iparmno++){ if( (flag == 4) && (iparmno != here->MOS3senParmNo) ) continue; - if( (flag == 5) && (iparmno != (here->MOS3senParmNo + - here->MOS3sens_l)) ) continue; + if( (flag == 5) && (iparmno != (here->MOS3senParmNo + + (int) here->MOS3sens_l)) ) continue; switch(flag){ case 1: diff --git a/src/spicelib/devices/mos3/mos3sld.c b/src/spicelib/devices/mos3/mos3sld.c index 0259aef50..cdd6b3ca2 100644 --- a/src/spicelib/devices/mos3/mos3sld.c +++ b/src/spicelib/devices/mos3/mos3sld.c @@ -538,8 +538,9 @@ next1: Osxpbd -= tag0 * *(here->MOS3dphibd_dl); Osxpgb -= tag0 * *(here->MOS3dphigb_dl); } - if(here->MOS3sens_w && - (iparmno == (here->MOS3senParmNo + here->MOS3sens_l))){ + if(here->MOS3sens_w && + (iparmno == (here->MOS3senParmNo + + (int) here->MOS3sens_l))){ Osxpgs -= tag0 * *(here->MOS3dphigs_dw); Osxpgd -= tag0 * *(here->MOS3dphigd_dw); Osxpbs -= tag0 * *(here->MOS3dphibs_dw); diff --git a/src/spicelib/devices/mos3/mos3supd.c b/src/spicelib/devices/mos3/mos3supd.c index 7215677a7..fda91e187 100644 --- a/src/spicelib/devices/mos3/mos3supd.c +++ b/src/spicelib/devices/mos3/mos3supd.c @@ -92,8 +92,9 @@ MOS3sUpdate(GENmodel *inModel, CKTcircuit *ckt) sxpbd += *(here->MOS3dphibd_dl); sxpgb += *(here->MOS3dphigb_dl); } - if(here->MOS3sens_w && - (iparmno == (here->MOS3senParmNo+here->MOS3sens_l))){ + if(here->MOS3sens_w && + (iparmno == (here->MOS3senParmNo + + (int) here->MOS3sens_l))){ sxpgs += *(here->MOS3dphigs_dw); sxpgd += *(here->MOS3dphigd_dw); sxpbs += *(here->MOS3dphibs_dw); diff --git a/src/spicelib/devices/mos9/mos9sacl.c b/src/spicelib/devices/mos9/mos9sacl.c index 3c4fa2871..f1e303d99 100644 --- a/src/spicelib/devices/mos9/mos9sacl.c +++ b/src/spicelib/devices/mos9/mos9sacl.c @@ -633,7 +633,7 @@ load: for(iparmno = 1;iparmno<=info->SENparms;iparmno++){ if( (flag == 4) && (iparmno != here->MOS9senParmNo) ) continue; if( (flag == 5) && (iparmno != (here->MOS9senParmNo + - here->MOS9sens_l)) ) continue; + (int) here->MOS9sens_l)) ) continue; switch(flag){ case 1: diff --git a/src/spicelib/devices/mos9/mos9sld.c b/src/spicelib/devices/mos9/mos9sld.c index ebb0bd94a..83b2c8b21 100644 --- a/src/spicelib/devices/mos9/mos9sld.c +++ b/src/spicelib/devices/mos9/mos9sld.c @@ -538,8 +538,9 @@ next1: Osxpbd -= tag0 * *(here->MOS9dphibd_dl); Osxpgb -= tag0 * *(here->MOS9dphigb_dl); } - if(here->MOS9sens_w && - (iparmno == (here->MOS9senParmNo + here->MOS9sens_l))){ + if(here->MOS9sens_w && + (iparmno == (here->MOS9senParmNo + + (int) here->MOS9sens_l))){ Osxpgs -= tag0 * *(here->MOS9dphigs_dw); Osxpgd -= tag0 * *(here->MOS9dphigd_dw); Osxpbs -= tag0 * *(here->MOS9dphibs_dw); diff --git a/src/spicelib/devices/mos9/mos9supd.c b/src/spicelib/devices/mos9/mos9supd.c index fea7baffa..8048f25fd 100644 --- a/src/spicelib/devices/mos9/mos9supd.c +++ b/src/spicelib/devices/mos9/mos9supd.c @@ -93,8 +93,9 @@ MOS9sUpdate(GENmodel *inModel, CKTcircuit *ckt) sxpbd += *(here->MOS9dphibd_dl); sxpgb += *(here->MOS9dphigb_dl); } - if(here->MOS9sens_w && - (iparmno == (here->MOS9senParmNo+here->MOS9sens_l))){ + if(here->MOS9sens_w && + (iparmno == (here->MOS9senParmNo + + (int) here->MOS9sens_l))){ sxpgs += *(here->MOS9dphigs_dw); sxpgd += *(here->MOS9dphigd_dw); sxpbs += *(here->MOS9dphibs_dw);