[PATCH 3/6] Fixed Visual Studio C4389 compiler warnings related to
signed/unsigned mismatch
This commit is contained in:
parent
c6d6aa60fa
commit
caa932eb1f
|
|
@ -637,7 +637,7 @@ load:
|
||||||
for(iparmno = 1;iparmno<=info->SENparms;iparmno++){
|
for(iparmno = 1;iparmno<=info->SENparms;iparmno++){
|
||||||
if((flag == 4) && (iparmno != here->MOS1senParmNo)) continue;
|
if((flag == 4) && (iparmno != here->MOS1senParmNo)) continue;
|
||||||
if( (flag == 5) && (iparmno != (here->MOS1senParmNo +
|
if( (flag == 5) && (iparmno != (here->MOS1senParmNo +
|
||||||
here->MOS1sens_l))) continue;
|
(int) here->MOS1sens_l))) continue;
|
||||||
|
|
||||||
switch(flag){
|
switch(flag){
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
||||||
|
|
@ -538,8 +538,9 @@ next1:
|
||||||
Osxpbd -= tag0 * *(here->MOS1dphibd_dl);
|
Osxpbd -= tag0 * *(here->MOS1dphibd_dl);
|
||||||
Osxpgb -= tag0 * *(here->MOS1dphigb_dl);
|
Osxpgb -= tag0 * *(here->MOS1dphigb_dl);
|
||||||
}
|
}
|
||||||
if(here->MOS1sens_w &&
|
if(here->MOS1sens_w &&
|
||||||
(iparmno == (here->MOS1senParmNo + here->MOS1sens_l))){
|
(iparmno == (here->MOS1senParmNo +
|
||||||
|
(int) here->MOS1sens_l))){
|
||||||
Osxpgs -= tag0 * *(here->MOS1dphigs_dw);
|
Osxpgs -= tag0 * *(here->MOS1dphigs_dw);
|
||||||
Osxpgd -= tag0 * *(here->MOS1dphigd_dw);
|
Osxpgd -= tag0 * *(here->MOS1dphigd_dw);
|
||||||
Osxpbs -= tag0 * *(here->MOS1dphibs_dw);
|
Osxpbs -= tag0 * *(here->MOS1dphibs_dw);
|
||||||
|
|
|
||||||
|
|
@ -94,8 +94,9 @@ MOS1sUpdate(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
sxpbd += *(here->MOS1dphibd_dl);
|
sxpbd += *(here->MOS1dphibd_dl);
|
||||||
sxpgb += *(here->MOS1dphigb_dl);
|
sxpgb += *(here->MOS1dphigb_dl);
|
||||||
}
|
}
|
||||||
if(here->MOS1sens_w &&
|
if(here->MOS1sens_w &&
|
||||||
(iparmno == (here->MOS1senParmNo+here->MOS1sens_l))){
|
(iparmno == (here->MOS1senParmNo +
|
||||||
|
(int) here->MOS1sens_l))){
|
||||||
sxpgs += *(here->MOS1dphigs_dw);
|
sxpgs += *(here->MOS1dphigs_dw);
|
||||||
sxpgd += *(here->MOS1dphigd_dw);
|
sxpgd += *(here->MOS1dphigd_dw);
|
||||||
sxpbs += *(here->MOS1dphibs_dw);
|
sxpbs += *(here->MOS1dphibs_dw);
|
||||||
|
|
|
||||||
|
|
@ -634,7 +634,7 @@ load:
|
||||||
for(iparmno = 1;iparmno<=info->SENparms;iparmno++){
|
for(iparmno = 1;iparmno<=info->SENparms;iparmno++){
|
||||||
if ((flag == 4) || (iparmno != here->MOS2senParmNo) ) continue;
|
if ((flag == 4) || (iparmno != here->MOS2senParmNo) ) continue;
|
||||||
if ((flag == 5) || (iparmno != (here->MOS2senParmNo +
|
if ((flag == 5) || (iparmno != (here->MOS2senParmNo +
|
||||||
here->MOS2sens_l)) ) continue;
|
(int) here->MOS2sens_l)) ) continue;
|
||||||
switch(flag){
|
switch(flag){
|
||||||
case 1:
|
case 1:
|
||||||
DvDp = model->MOS2type *
|
DvDp = model->MOS2type *
|
||||||
|
|
|
||||||
|
|
@ -536,8 +536,9 @@ next1:
|
||||||
Osxpbd -= tag0 * *(here->MOS2dphibd_dl);
|
Osxpbd -= tag0 * *(here->MOS2dphibd_dl);
|
||||||
Osxpgb -= tag0 * *(here->MOS2dphigb_dl);
|
Osxpgb -= tag0 * *(here->MOS2dphigb_dl);
|
||||||
}
|
}
|
||||||
if(here->MOS2sens_w &&
|
if(here->MOS2sens_w &&
|
||||||
(iparmno == (here->MOS2senParmNo + here->MOS2sens_l))){
|
(iparmno == (here->MOS2senParmNo +
|
||||||
|
(int) here->MOS2sens_l))){
|
||||||
Osxpgs -= tag0 * *(here->MOS2dphigs_dw);
|
Osxpgs -= tag0 * *(here->MOS2dphigs_dw);
|
||||||
Osxpgd -= tag0 * *(here->MOS2dphigd_dw);
|
Osxpgd -= tag0 * *(here->MOS2dphigd_dw);
|
||||||
Osxpbs -= tag0 * *(here->MOS2dphibs_dw);
|
Osxpbs -= tag0 * *(here->MOS2dphibs_dw);
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,8 @@ MOS2sUpdate(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
sxpgb += *(here->MOS2dphigb_dl);
|
sxpgb += *(here->MOS2dphigb_dl);
|
||||||
}
|
}
|
||||||
if(here->MOS2sens_w &&
|
if(here->MOS2sens_w &&
|
||||||
(iparmno == (here->MOS2senParmNo+here->MOS2sens_l))){
|
(iparmno == (here->MOS2senParmNo +
|
||||||
|
(int) here->MOS2sens_l))){
|
||||||
sxpgs += *(here->MOS2dphigs_dw);
|
sxpgs += *(here->MOS2dphigs_dw);
|
||||||
sxpgd += *(here->MOS2dphigd_dw);
|
sxpgd += *(here->MOS2dphigd_dw);
|
||||||
sxpbs += *(here->MOS2dphibs_dw);
|
sxpbs += *(here->MOS2dphibs_dw);
|
||||||
|
|
|
||||||
|
|
@ -637,8 +637,8 @@ load:
|
||||||
#endif /* SENSDEBUG */
|
#endif /* SENSDEBUG */
|
||||||
for(iparmno = 1;iparmno<=info->SENparms;iparmno++){
|
for(iparmno = 1;iparmno<=info->SENparms;iparmno++){
|
||||||
if( (flag == 4) && (iparmno != here->MOS3senParmNo) ) continue;
|
if( (flag == 4) && (iparmno != here->MOS3senParmNo) ) continue;
|
||||||
if( (flag == 5) && (iparmno != (here->MOS3senParmNo +
|
if( (flag == 5) && (iparmno != (here->MOS3senParmNo +
|
||||||
here->MOS3sens_l)) ) continue;
|
(int) here->MOS3sens_l)) ) continue;
|
||||||
|
|
||||||
switch(flag){
|
switch(flag){
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
||||||
|
|
@ -538,8 +538,9 @@ next1:
|
||||||
Osxpbd -= tag0 * *(here->MOS3dphibd_dl);
|
Osxpbd -= tag0 * *(here->MOS3dphibd_dl);
|
||||||
Osxpgb -= tag0 * *(here->MOS3dphigb_dl);
|
Osxpgb -= tag0 * *(here->MOS3dphigb_dl);
|
||||||
}
|
}
|
||||||
if(here->MOS3sens_w &&
|
if(here->MOS3sens_w &&
|
||||||
(iparmno == (here->MOS3senParmNo + here->MOS3sens_l))){
|
(iparmno == (here->MOS3senParmNo +
|
||||||
|
(int) here->MOS3sens_l))){
|
||||||
Osxpgs -= tag0 * *(here->MOS3dphigs_dw);
|
Osxpgs -= tag0 * *(here->MOS3dphigs_dw);
|
||||||
Osxpgd -= tag0 * *(here->MOS3dphigd_dw);
|
Osxpgd -= tag0 * *(here->MOS3dphigd_dw);
|
||||||
Osxpbs -= tag0 * *(here->MOS3dphibs_dw);
|
Osxpbs -= tag0 * *(here->MOS3dphibs_dw);
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,9 @@ MOS3sUpdate(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
sxpbd += *(here->MOS3dphibd_dl);
|
sxpbd += *(here->MOS3dphibd_dl);
|
||||||
sxpgb += *(here->MOS3dphigb_dl);
|
sxpgb += *(here->MOS3dphigb_dl);
|
||||||
}
|
}
|
||||||
if(here->MOS3sens_w &&
|
if(here->MOS3sens_w &&
|
||||||
(iparmno == (here->MOS3senParmNo+here->MOS3sens_l))){
|
(iparmno == (here->MOS3senParmNo +
|
||||||
|
(int) here->MOS3sens_l))){
|
||||||
sxpgs += *(here->MOS3dphigs_dw);
|
sxpgs += *(here->MOS3dphigs_dw);
|
||||||
sxpgd += *(here->MOS3dphigd_dw);
|
sxpgd += *(here->MOS3dphigd_dw);
|
||||||
sxpbs += *(here->MOS3dphibs_dw);
|
sxpbs += *(here->MOS3dphibs_dw);
|
||||||
|
|
|
||||||
|
|
@ -633,7 +633,7 @@ load:
|
||||||
for(iparmno = 1;iparmno<=info->SENparms;iparmno++){
|
for(iparmno = 1;iparmno<=info->SENparms;iparmno++){
|
||||||
if( (flag == 4) && (iparmno != here->MOS9senParmNo) ) continue;
|
if( (flag == 4) && (iparmno != here->MOS9senParmNo) ) continue;
|
||||||
if( (flag == 5) && (iparmno != (here->MOS9senParmNo +
|
if( (flag == 5) && (iparmno != (here->MOS9senParmNo +
|
||||||
here->MOS9sens_l)) ) continue;
|
(int) here->MOS9sens_l)) ) continue;
|
||||||
|
|
||||||
switch(flag){
|
switch(flag){
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
||||||
|
|
@ -538,8 +538,9 @@ next1:
|
||||||
Osxpbd -= tag0 * *(here->MOS9dphibd_dl);
|
Osxpbd -= tag0 * *(here->MOS9dphibd_dl);
|
||||||
Osxpgb -= tag0 * *(here->MOS9dphigb_dl);
|
Osxpgb -= tag0 * *(here->MOS9dphigb_dl);
|
||||||
}
|
}
|
||||||
if(here->MOS9sens_w &&
|
if(here->MOS9sens_w &&
|
||||||
(iparmno == (here->MOS9senParmNo + here->MOS9sens_l))){
|
(iparmno == (here->MOS9senParmNo +
|
||||||
|
(int) here->MOS9sens_l))){
|
||||||
Osxpgs -= tag0 * *(here->MOS9dphigs_dw);
|
Osxpgs -= tag0 * *(here->MOS9dphigs_dw);
|
||||||
Osxpgd -= tag0 * *(here->MOS9dphigd_dw);
|
Osxpgd -= tag0 * *(here->MOS9dphigd_dw);
|
||||||
Osxpbs -= tag0 * *(here->MOS9dphibs_dw);
|
Osxpbs -= tag0 * *(here->MOS9dphibs_dw);
|
||||||
|
|
|
||||||
|
|
@ -93,8 +93,9 @@ MOS9sUpdate(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
sxpbd += *(here->MOS9dphibd_dl);
|
sxpbd += *(here->MOS9dphibd_dl);
|
||||||
sxpgb += *(here->MOS9dphigb_dl);
|
sxpgb += *(here->MOS9dphigb_dl);
|
||||||
}
|
}
|
||||||
if(here->MOS9sens_w &&
|
if(here->MOS9sens_w &&
|
||||||
(iparmno == (here->MOS9senParmNo+here->MOS9sens_l))){
|
(iparmno == (here->MOS9senParmNo +
|
||||||
|
(int) here->MOS9sens_l))){
|
||||||
sxpgs += *(here->MOS9dphigs_dw);
|
sxpgs += *(here->MOS9dphigs_dw);
|
||||||
sxpgd += *(here->MOS9dphigd_dw);
|
sxpgd += *(here->MOS9dphigd_dw);
|
||||||
sxpbs += *(here->MOS9dphibs_dw);
|
sxpbs += *(here->MOS9dphibs_dw);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue