diff options
| author | Pieter Eendebak <pieter.eendebak@gmail.com> | 2022-05-20 20:21:16 +0200 |
|---|---|---|
| committer | Pieter Eendebak <pieter.eendebak@gmail.com> | 2022-05-20 20:21:16 +0200 |
| commit | f9fb3736bb689eec485fac6102d1784d8e3a9a4c (patch) | |
| tree | 8ef6045e8d5c9b112ff8d59a974fe063bafb78f0 /numpy | |
| parent | ae8b9ce90dc2d5922def5db8cf7d4410c60b3e13 (diff) | |
| download | numpy-f9fb3736bb689eec485fac6102d1784d8e3a9a4c.tar.gz | |
use direct call to convert python float to double
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/src/multiarray/arraytypes.c.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/arraytypes.c.src b/numpy/core/src/multiarray/arraytypes.c.src index 1dc6c9bb1..ee4f5f312 100644 --- a/numpy/core/src/multiarray/arraytypes.c.src +++ b/numpy/core/src/multiarray/arraytypes.c.src @@ -91,7 +91,7 @@ MyPyFloat_AsDouble(PyObject *obj) if (num == NULL) { return NPY_NAN; } - ret = PyFloat_AsDouble(num); + ret = PyFloat_AS_DOUBLE(num); Py_DECREF(num); return ret; } |
