summaryrefslogtreecommitdiffstats
path: root/comms/fldigi/files/patch-src_ifkp_ifkp.cxx
blob: 9d1996a8b577675ec1eb539743e188d5967e7e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/ifkp/ifkp.cxx.orig	2015-10-02 23:20:08 UTC
+++ src/ifkp/ifkp.cxx
@@ -580,9 +580,12 @@ int ifkp::rx_process(const double *buf, 
 						&rx_stream[IFKP_SHIFT_SIZE],			// from
 						IFKP_BLOCK_SIZE*sizeof(*rx_stream));	// # bytes
 				memset(fft_data, 0, sizeof(fft_data));
-				for (int i = 0; i < IFKP_BLOCK_SIZE; i++)
-					fft_data[i].real() = fft_data[i].imag() =
-						rx_stream[i] * a_blackman[i];
+				for (int i = 0; i < IFKP_BLOCK_SIZE; i++) {
+					fft_data[i].real(
+							 rx_stream[i] * a_blackman[i]);
+					fft_data[i].imag(
+							 rx_stream[i] * a_blackman[i]);
+				}
 				fft->ComplexFFT(fft_data);
 				process_tones();
 			}
OpenPOWER on IntegriCloud