Skip to content

Commit

Permalink
Correct openPMD_Attributable_setAttribute_cfloat2
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Oct 29, 2023
1 parent 3f685cb commit 3f1f710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/binding/c/backend/Attributable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 3f1f710

Please sign in to comment.