Proper conversion bool to int

This commit is contained in:
Holger Vogt 2024-12-09 14:56:56 +01:00
parent 9481658221
commit 010de700f7
5 changed files with 5 additions and 5 deletions

View File

@ -399,7 +399,7 @@ NBJTload(GENmodel *inModel, CKTcircuit *ckt)
ckt->CKTtroubleElt = (GENinstance *) inst;
return (E_BADMATRIX);
}
devConverged = ONEdeviceConverged(pDevice);
devConverged = (int)ONEdeviceConverged(pDevice);
pDevice->converged = devConverged;
/* compute the currents */

View File

@ -399,7 +399,7 @@ NBJT2load(GENmodel *inModel, CKTcircuit *ckt)
ckt->CKTtroubleElt = (GENinstance *) inst;
return (E_BADMATRIX);
}
devConverged = TWOdeviceConverged(pDevice);
devConverged = (int)TWOdeviceConverged(pDevice);
pDevice->converged = devConverged;
/* compute the currents */

View File

@ -318,7 +318,7 @@ NUMDload(GENmodel *inModel, CKTcircuit *ckt)
return (E_BADMATRIX);
}
pDevice->converged = devConverged = ONEdeviceConverged(pDevice);
pDevice->converged = devConverged = (int)ONEdeviceConverged(pDevice);
/* extract the current and conductance information */
NUMDcurrent(pDevice, TRUE, model->NUMDpInfo->intCoeff, &id);

View File

@ -328,7 +328,7 @@ NUMD2load(GENmodel *inModel, CKTcircuit *ckt)
ckt->CKTtroubleElt = (GENinstance *) inst;
return (E_BADMATRIX);
}
devConverged = TWOdeviceConverged(pDevice);
devConverged = (int)TWOdeviceConverged(pDevice);
pDevice->converged = devConverged;
/* extract the current and conductance information */

View File

@ -496,7 +496,7 @@ NUMOSload(GENmodel *inModel, CKTcircuit *ckt)
ckt->CKTtroubleElt = (GENinstance *) inst;
return (E_BADMATRIX);
}
devConverged = TWOdeviceConverged(pDevice);
devConverged = (int)TWOdeviceConverged(pDevice);
pDevice->converged = devConverged;
/* compute the currents and conductances */