Browse Source

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

signed/unsigned mismatch
pre-master-46
Jim Monte 7 years ago
committed by Holger Vogt
parent
commit
d0f8c6896d
  1. 2
      src/spicelib/devices/mos1/mos1sacl.c
  2. 5
      src/spicelib/devices/mos1/mos1sld.c
  3. 5
      src/spicelib/devices/mos1/mos1supd.c
  4. 2
      src/spicelib/devices/mos2/mos2sacl.c
  5. 5
      src/spicelib/devices/mos2/mos2sld.c
  6. 3
      src/spicelib/devices/mos2/mos2supd.c
  7. 4
      src/spicelib/devices/mos3/mos3sacl.c
  8. 5
      src/spicelib/devices/mos3/mos3sld.c
  9. 5
      src/spicelib/devices/mos3/mos3supd.c
  10. 2
      src/spicelib/devices/mos9/mos9sacl.c
  11. 5
      src/spicelib/devices/mos9/mos9sld.c
  12. 5
      src/spicelib/devices/mos9/mos9supd.c

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save