]> git.gag.com Git - debian/gnuradio/blobdiff - gnuradio-core/src/lib/general/gr_firdes.cc
Imported Upstream version 3.0.4
[debian/gnuradio] / gnuradio-core / src / lib / general / gr_firdes.cc
index 994424edf01f15346fa8a74b90c8ca593bbf7c38..7b449af95dd6f83bbc5d5c1458690a8bbfd1b20f 100644 (file)
@@ -6,7 +6,7 @@
  * 
  * GNU Radio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  * 
  * GNU Radio is distributed in the hope that it will be useful,
@@ -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];
     }