From 3f1f71006af3948e649b716811f81dc26fc221f9 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 29 Oct 2023 15:03:40 -0400 Subject: [PATCH] Correct openPMD_Attributable_setAttribute_cfloat2 --- src/binding/c/backend/Attributable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/binding/c/backend/Attributable.c b/src/binding/c/backend/Attributable.c index 5110c81401..c114f82ec0 100644 --- a/src/binding/c/backend/Attributable.c +++ b/src/binding/c/backend/Attributable.c @@ -10,7 +10,7 @@ bool openPMD_Attributable_setAttribute_cfloat( bool openPMD_Attributable_setAttribute_cdouble( openPMD_Attributable *attributable, const char *key, complex double value) { - return openPMD_Attributable_setAttribute_cfloat2( + return openPMD_Attributable_setAttribute_cdouble2( attributable, key, creal(value), cimag(value)); } @@ -39,7 +39,7 @@ bool openPMD_Attributable_setAttribute_vec_cdouble( const complex double *values, size_t size) { - return openPMD_Attributable_setAttribute_vec_cfloat2( + return openPMD_Attributable_setAttribute_vec_cdouble2( attributable, key, (const double *)values, size); }