explicit type cast
This commit is contained in:
parent
8b4edf1a0c
commit
30d4b95931
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue