From 9bee1a326b06e6501eb135078fe9d314af108918 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Fri, 20 Dec 2019 19:45:16 -0800 Subject: [PATCH] Fix complex cast for gcc9 Fixes #57 --- components/mroipac/looks/bindings/looksmodule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mroipac/looks/bindings/looksmodule.cpp b/components/mroipac/looks/bindings/looksmodule.cpp index 27d40f1..122e52b 100644 --- a/components/mroipac/looks/bindings/looksmodule.cpp +++ b/components/mroipac/looks/bindings/looksmodule.cpp @@ -250,7 +250,7 @@ int takeLookscpx(DataAccessor *IAIn, DataAccessor* IAout, int ld, int la) for(int j = 0; j < nfull; j++) { - bdbl[j] += ain[j]; + bdbl[j] += complex(ain[j].real(), ain[j].imag()); } }