Skip to content

Commit f2ac2ff

Browse files
committed
remove unnecessary cast
1 parent 40cd3a8 commit f2ac2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/methods.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ astype_array(PyObject* m, PyObject* args) {
324324
}
325325
}
326326
// all other cases: do a standard cast conversion
327-
PyObject* result = PyArray_CastToType((PyArrayObject*)array, dtype, 0);
327+
PyObject* result = PyArray_CastToType(array, dtype, 0);
328328
if (!result) {
329329
Py_DECREF(dtype);
330330
return NULL;

0 commit comments

Comments
 (0)