Skip to content

Commit 3018f8b

Browse files
authored
Merge pull request numpy#21553 from eendebakpt/MyPyFloat_AsDouble
PERF: Faster MyPyFloat_AsDouble
2 parents f3430d7 + f9fb373 commit 3018f8b

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)