diff options
Diffstat (limited to 'numpy/numarray')
-rw-r--r-- | numpy/numarray/_capi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/numarray/_capi.c b/numpy/numarray/_capi.c index 8d37dec16..deb2cd478 100644 --- a/numpy/numarray/_capi.c +++ b/numpy/numarray/_capi.c @@ -1098,7 +1098,7 @@ NA_OutputArray(PyObject *a, NumarrayType t, int requires) PyArray_DIMS((PyArrayObject *)a), dtype, 0); Py_INCREF(a); - if (PyArray_SetBase(ret, a) < 0) { + if (PyArray_SetBaseObject(ret, a) < 0) { Py_DECREF(ret); return NULL; } |