Skip to content

Commit

Permalink
fix pickling array size >2G (numpygh-17045)
Browse files Browse the repository at this point in the history
  • Loading branch information
iynehz authored and charris committed Sep 8, 2020
1 parent 2898f69 commit 73fb919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/core/src/multiarray/methods.c
Expand Up @@ -1614,7 +1614,7 @@ _getlist_pkl(PyArrayObject *self)
}
while (iter->index < iter->size) {
theobject = getitem(iter->dataptr, self);
PyList_SET_ITEM(list, (int) iter->index, theobject);
PyList_SET_ITEM(list, iter->index, theobject);
PyArray_ITER_NEXT(iter);
}
Py_DECREF(iter);
Expand All @@ -1634,7 +1634,7 @@ _setlist_pkl(PyArrayObject *self, PyObject *list)
return -1;
}
while(iter->index < iter->size) {
theobject = PyList_GET_ITEM(list, (int) iter->index);
theobject = PyList_GET_ITEM(list, iter->index);
setitem(theobject, iter->dataptr, self);
PyArray_ITER_NEXT(iter);
}
Expand Down

0 comments on commit 73fb919

Please sign in to comment.