From 263e4681666cb3dc1c3f27e9752404babca29ec0 Mon Sep 17 00:00:00 2001 From: Wouter Date: Fri, 7 Jul 2023 14:40:40 +0200 Subject: [PATCH] Fixed gr_complex casting for Clang compilation --- lib/pl_descrambler.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pl_descrambler.cc b/lib/pl_descrambler.cc index 04551cb..aaddd33 100644 --- a/lib/pl_descrambler.cc +++ b/lib/pl_descrambler.cc @@ -54,7 +54,9 @@ void pl_descrambler::compute_descrambling_sequence() // // The descrambling is achieved by multiplying the input symbols by the complex // conjugate of the scrambling factors, which take the following possible values: - constexpr gr_complex descrambling_lut[4] = { 1.0, -1.0j, -1.0, 1.0j }; + constexpr gr_complex descrambling_lut[4] = { + { 1.0, 0 }, { 0, -1.0 }, { -1.0, 0 }, { 0, 1.0 } + }; // In the sequel, compute Rn[i] over MAX_PLFRAME_PAYLOAD. Reuse the implementation // from gr-dtv's dvbs2_physical_cc_impl.cc.