explicit type cast

This commit is contained in:
h_vogt 2011-02-13 08:47:34 +00:00
parent 8b4edf1a0c
commit 30d4b95931
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2011-02-13 Holger Vogt
* spicelib/analysis/acan.c: explicit type cast
2011-02-12 Holger Vogt
* src/makefile.am: enable tclspice again
* com_measure2.c fix bug no. 3165634

View File

@ -346,7 +346,7 @@ ACan(CKTcircuit *ckt, int restart)
startfreq = log(startfreq);
if (freq > 0.0)
SetAnalyse( "ac", (log(freq)-startfreq) * 1000.0 / (endfreq-startfreq));
SetAnalyse( "ac", (int)((log(freq)-startfreq) * 1000.0 / (endfreq-startfreq)));
}
#endif
@ -359,7 +359,7 @@ ACan(CKTcircuit *ckt, int restart)
{
double endfreq = ((ACAN*)ckt->CKTcurJob)->ACstopFreq;
double startfreq = ((ACAN*)ckt->CKTcurJob)->ACstartFreq;
SetAnalyse( "ac", (freq - startfreq)* 1000.0 / (endfreq-startfreq));
SetAnalyse( "ac", (int)((freq - startfreq)* 1000.0 / (endfreq-startfreq)));
}
#endif