Browse Source

explicit type cast

pre-master-46
h_vogt 15 years ago
parent
commit
30d4b95931
  1. 3
      ChangeLog
  2. 4
      src/spicelib/analysis/acan.c

3
ChangeLog

@ -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

4
src/spicelib/analysis/acan.c

@ -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…
Cancel
Save