summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index 5e3a3c334..5e9b16b15 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -905,7 +905,8 @@ _deepcopy_call(char *iptr, char *optr, PyArray_Descr *dtype,
else if (PyDescr_HASFIELDS(dtype)) {
PyObject *key, *value, *title=NULL;
PyArray_Descr *new;
- int offset, pos=0;
+ int offset;
+ Py_ssize_t pos=0;
while (PyDict_Next(dtype->fields, &pos, &key, &value)) {
if (!PyArg_ParseTuple(value, "Oi|O", &new, &offset,
&title)) return;
@@ -1080,7 +1081,7 @@ array_setstate(PyArrayObject *self, PyObject *args)
int fortran;
PyObject *rawdata;
char *datastr;
- int len;
+ Py_ssize_t len;
intp size, dimensions[MAX_DIMS];
int nd;