summaryrefslogtreecommitdiff
path: root/numpy/__init__.pxd
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-08-24 11:17:23 +0100
committerEric Wieser <wieser.eric@gmail.com>2020-08-24 11:17:23 +0100
commit453ec52f925ea841d9755f1dea875407a07f4847 (patch)
tree196340fdf3e4d630b47dd8ee97c9d79c8659f367 /numpy/__init__.pxd
parent64619c55896dad1927afe78c0702a58abf0d038f (diff)
downloadnumpy-453ec52f925ea841d9755f1dea875407a07f4847.tar.gz
BUG: Fix incorrect cython definition of npy_cfloat
The definition in the numpy headers is a pair of `float`s not `double`s.
Diffstat (limited to 'numpy/__init__.pxd')
-rw-r--r--numpy/__init__.pxd4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/__init__.pxd b/numpy/__init__.pxd
index 206dbe8b9..bf4298e59 100644
--- a/numpy/__init__.pxd
+++ b/numpy/__init__.pxd
@@ -290,8 +290,8 @@ cdef extern from "numpy/arrayobject.h":
ctypedef long double npy_float128
ctypedef struct npy_cfloat:
- double real
- double imag
+ float real
+ float imag
ctypedef struct npy_cdouble:
double real