From 30d4b95931090e641a094f9eb7b7fe94699805f7 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 13 Feb 2011 08:47:34 +0000 Subject: [PATCH] explicit type cast --- ChangeLog | 3 +++ src/spicelib/analysis/acan.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 76819cc5b..cb64ce75b 100644 --- a/ChangeLog +++ b/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 diff --git a/src/spicelib/analysis/acan.c b/src/spicelib/analysis/acan.c index 6dc710e31..35bd63400 100644 --- a/src/spicelib/analysis/acan.c +++ b/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