From d143e0f04fbdacc1ebd66bef87ca02f2b61b69ae Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Wed, 23 Jan 2013 01:23:30 -0500 Subject: [PATCH] Fix version #if for Py2.5 complex workaround. --- src/wrapper/_pvt_struct_v2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrapper/_pvt_struct_v2.cpp b/src/wrapper/_pvt_struct_v2.cpp index d8e9d91b..f0762c62 100644 --- a/src/wrapper/_pvt_struct_v2.cpp +++ b/src/wrapper/_pvt_struct_v2.cpp @@ -756,7 +756,7 @@ np_complex_float(char *p, PyObject *v, const formatdef *f) float re = 0.0f; float im = 0.0f; Py_complex cplx; -#if (PY_VERSION_HEX < 0x02050000) +#if (PY_VERSION_HEX < 0x02060000) { if (PyComplex_Check(v)) cplx = PyComplex_AsCComplex(v); @@ -806,7 +806,7 @@ np_complex_double(char *p, PyObject *v, const formatdef *f) double re = 0.0; double im = 0.0; Py_complex cplx; -#if (PY_VERSION_HEX < 0x02050000) +#if (PY_VERSION_HEX < 0x02060000) { if (PyComplex_Check(v)) cplx = PyComplex_AsCComplex(v); -- GitLab