From 5f11df3a837bfe56013b9483e5d8dd931b1aaf4e Mon Sep 17 00:00:00 2001 From: eb Date: Mon, 4 Dec 2006 23:39:26 +0000 Subject: fix for ticket:113 gr_firdes::band_reject git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4055 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/general/gr_firdes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnuradio-core') diff --git a/gnuradio-core/src/lib/general/gr_firdes.cc b/gnuradio-core/src/lib/general/gr_firdes.cc index 994424edf..87724fcdf 100644 --- a/gnuradio-core/src/lib/general/gr_firdes.cc +++ b/gnuradio-core/src/lib/general/gr_firdes.cc @@ -272,7 +272,7 @@ gr_firdes::band_reject (double gain, for (int n = -M; n <= M; n++){ if (n == 0) - taps[n + M] = (1.0 + (fwT0 - fwT1)) / M_PI * w[n + M]; + taps[n + M] = 1.0 + ((fwT0 - fwT1) / M_PI * w[n + M]); else { taps[n + M] = (sin (n * fwT0) - sin (n * fwT1)) / (n * M_PI) * w[n + M]; } -- cgit