Skip to content

Commit f9fb373

Browse files
committed
use direct call to convert python float to double
1 parent ae8b9ce commit f9fb373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/src/multiarray/arraytypes.c.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ MyPyFloat_AsDouble(PyObject *obj)
9191
if (num == NULL) {
9292
return NPY_NAN;
9393
}
94-
ret = PyFloat_AsDouble(num);
94+
ret = PyFloat_AS_DOUBLE(num);
9595
Py_DECREF(num);
9696
return ret;
9797
}

0 commit comments

Comments
 (0)