From 2a6052517bc3dcbdb3938cbbb0458ded832e1ec6 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 17 Mar 2023 21:04:08 +0100 Subject: [PATCH] Fix prvious commit: allow access to all vector elements of cc --- src/maths/cmaths/cmath1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maths/cmaths/cmath1.c b/src/maths/cmaths/cmath1.c index f0ecf0821..34ddc9ca1 100644 --- a/src/maths/cmaths/cmath1.c +++ b/src/maths/cmaths/cmath1.c @@ -875,10 +875,10 @@ cx_atanh(void* data, short int type, int length, int* newlength, short int* newt int i; for (i = 0; i < length; i++) { #ifdef _MSC_VER - _Dcomplex midin = _Cbuild(cc->cx_real, cc->cx_imag); + _Dcomplex midin = _Cbuild(cc[i].cx_real, cc[i].cx_imag); _Dcomplex midout = catanh(midin); #else - double complex midin = cc->cx_real + _Complex_I * cc->cx_imag; + double complex midin = cc[i].cx_real + _Complex_I * cc[i].cx_imag; double complex midout = catanh(midin); #endif d[i].cx_real = creal(midout);