We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40cd3a8 commit f2ac2ffCopy full SHA for f2ac2ff
src/methods.c
@@ -324,7 +324,7 @@ astype_array(PyObject* m, PyObject* args) {
324
}
325
326
// all other cases: do a standard cast conversion
327
- PyObject* result = PyArray_CastToType((PyArrayObject*)array, dtype, 0);
+ PyObject* result = PyArray_CastToType(array, dtype, 0);
328
if (!result) {
329
Py_DECREF(dtype);
330
return NULL;
0 commit comments