[PATCH 3/6] Fixed Visual Studio C4389 compiler warnings related to

signed/unsigned mismatch
This commit is contained in:
Jim Monte 2019-05-01 11:10:21 +02:00 committed by Holger Vogt
parent c6d6aa60fa
commit caa932eb1f
12 changed files with 28 additions and 20 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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