lbalhar / rpms / Cython

Forked from rpms/Cython 4 years ago
Clone
bb35b45
From a2bec15e0db9ebdd22504268c15bfa059b44f72f Mon Sep 17 00:00:00 2001
bb35b45
From: Robert Bradshaw <robertwb@gmail.com>
bb35b45
Date: Fri, 5 Feb 2016 13:16:05 -0800
bb35b45
Subject: [PATCH] Really fix complex numbers.
bb35b45
bb35b45
---
bb35b45
 Cython/Compiler/PyrexTypes.py | 2 +-
bb35b45
 1 file changed, 1 insertion(+), 1 deletion(-)
bb35b45
bb35b45
diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py
bb35b45
index 0e1fbf5..890b2d1 100644
bb35b45
--- a/Cython/Compiler/PyrexTypes.py
bb35b45
+++ b/Cython/Compiler/PyrexTypes.py
bb35b45
@@ -2061,7 +2061,7 @@ def cast_code(self, expr_code):
bb35b45
     #define __Pyx_CIMAG(z) ((z).imag)
bb35b45
 #endif
bb35b45
 
bb35b45
-#if defined(__cplusplus) && !CYTHON_COMPLEX \
bb35b45
+#if defined(__cplusplus) && CYTHON_CCOMPLEX \
bb35b45
         && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && GCC_VERSION >= 40400) || __cplusplus >= 201103)
bb35b45
     #define __Pyx_SET_CREAL(z,x) ((z).real(x))
bb35b45
     #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))