Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken complex initializers (use ISO C99 CMPLX macro). #1728

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

agraef
Copy link
Contributor

@agraef agraef commented Aug 8, 2023

Under gcc (including mingw), the previous MSVC-style code would cause the imaginary parts to be ignored, yielding the wrong complex values.

The new code should hopefully work across all supported platforms. On Windows, which seems to lack the CMPLX macro in its complex.h header, we define it in a suitable manner depending on the compiler.

Under gcc (including mingw), the previous MSVC-style code would cause
the imaginary parts to be ignored, yielding the wrong complex values.

The new code should hopefully work across all supported platforms. On
Windows, which seems to lack the CMPLX macro in its complex.h header, we
define it in a suitable manner depending on the compiler.
@porres porres merged commit 2cfdbad into porres:master Aug 8, 2023
4 checks passed
@agraef agraef deleted the complex-fixes branch August 8, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants