diff options
author | joerg <joerg@pkgsrc.org> | 2015-08-10 19:26:43 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-08-10 19:26:43 +0000 |
commit | 8ce4c8ede0a371bfd181b4b6316b1e062d52d009 (patch) | |
tree | a66228f3c328bec09e6f506f29fccf907a854265 /ham | |
parent | c49fd03dd1bfc5521d24c5c0eac3f868d7a6cece (diff) | |
download | pkgsrc-8ce4c8ede0a371bfd181b4b6316b1e062d52d009.tar.gz |
std::complex::imag() and std::complex::real() are not lvalues.
Diffstat (limited to 'ham')
-rw-r--r-- | ham/fldigi/distinfo | 3 | ||||
-rw-r--r-- | ham/fldigi/patches/patch-src_fsq_fsq.cxx | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/ham/fldigi/distinfo b/ham/fldigi/distinfo index 3b19e79a641..895503af78b 100644 --- a/ham/fldigi/distinfo +++ b/ham/fldigi/distinfo @@ -1,9 +1,10 @@ -$NetBSD: distinfo,v 1.28 2015/07/23 12:11:29 mef Exp $ +$NetBSD: distinfo,v 1.29 2015/08/10 19:26:43 joerg Exp $ SHA1 (fldigi-3.22.13.tar.gz) = d998aea45f03ec7fd6eccd09ab30f05be6f609e2 RMD160 (fldigi-3.22.13.tar.gz) = dca6a9ed3c70f616455dbcbc3bc853fd740dc250 Size (fldigi-3.22.13.tar.gz) = 2909523 bytes SHA1 (patch-src_dominoex_dominoex.cxx) = d59360b3649b879080f57d583000fd88861623dd +SHA1 (patch-src_fsq_fsq.cxx) = 4d38df763b69438a0e3a1bd55dd90aaeae45cc83 SHA1 (patch-src_include_qrunner.h) = 8ee58ce3ce8a05cd9007fb947dc32e5783216d5a SHA1 (patch-src_misc_configuration.cxx) = 4ebf0c46913f73047ad5b858f6d4ae9def82ec60 SHA1 (patch-src_misc_newinstall.cxx) = 2c215e9423d27dd4f4657221b17cf4ed3f12355c diff --git a/ham/fldigi/patches/patch-src_fsq_fsq.cxx b/ham/fldigi/patches/patch-src_fsq_fsq.cxx new file mode 100644 index 00000000000..b9d04188673 --- /dev/null +++ b/ham/fldigi/patches/patch-src_fsq_fsq.cxx @@ -0,0 +1,20 @@ +$NetBSD: patch-src_fsq_fsq.cxx,v 1.1 2015/08/10 19:26:43 joerg Exp $ + +--- src/fsq/fsq.cxx.orig 2015-07-21 14:54:32.000000000 +0000 ++++ src/fsq/fsq.cxx +@@ -1197,9 +1197,12 @@ int fsq::rx_process(const double *buf, i + &rx_stream[SHIFT_SIZE], // from + BLOCK_SIZE*sizeof(*rx_stream)); // # bytes + memset(fft_data, 0, sizeof(fft_data)); +- for (int i = 0; i < BLOCK_SIZE; i++) +- fft_data[i].real() = fft_data[i].imag() = +- rx_stream[i] * a_blackman[i]; ++ for (int i = 0; i < BLOCK_SIZE; i++) { ++ double r = rx_stream[i] * a_blackman[i]; ++ fft_data[i].real(r); ++ fft_data[i].imag(r); ++ } ++ + fft->ComplexFFT(fft_data); + process_tones(); + } |