summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authorJosh Blum2012-01-25 12:05:35 -0800
committerJohnathan Corgan2012-01-25 16:35:34 -0800
commitf122d72a1090d38d1a08f98c56e0d071f79fef0b (patch)
treecfd33ac04500eda33233f3315a80368991fcb712 /gnuradio-core/src
parent2d80e59c2b26de65e5266b8c6fb4be118a7428a0 (diff)
downloadgnuradio-f122d72a1090d38d1a08f98c56e0d071f79fef0b.tar.gz
gnuradio-f122d72a1090d38d1a08f98c56e0d071f79fef0b.tar.bz2
gnuradio-f122d72a1090d38d1a08f98c56e0d071f79fef0b.zip
core: fix floor ambiguous overload in vcc fftw
The msvc compiler doesnt like the ambiguous overload of floor. However, floor should not have an effect on the integer divide anyway.
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc b/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc
index c66015c11..948ab20b9 100644
--- a/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc
+++ b/gnuradio-core/src/lib/general/gr_fft_vcc_fftw.cc
@@ -68,7 +68,7 @@ gr_fft_vcc_fftw::work (int noutput_items,
if (d_window.size()){
gr_complex *dst = d_fft->get_inbuf();
if(!d_forward && d_shift){
- int offset = (!d_forward && d_shift)?floor(d_fft_size/2):0;
+ int offset = (!d_forward && d_shift)?(d_fft_size/2):0;
int fft_m_offset = d_fft_size - offset;
for (unsigned int i = 0; i < offset; i++) // apply window
dst[i+fft_m_offset] = in[i] * d_window[i];