diff options
author | cookedm <cookedm@localhost> | 2006-09-28 11:20:52 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-09-28 11:20:52 +0000 |
commit | 0698cb7e52b7dab046b28322d37f28050257e9c0 (patch) | |
tree | c05bdcc72bda91e44fc7a3b1e25804ef0263c296 /numpy/core/src/arraymethods.c | |
parent | f9409c5e14dc38047365b30da7d1ee2f2084fc72 (diff) | |
download | numpy-0698cb7e52b7dab046b28322d37f28050257e9c0.tar.gz |
Python 2.5 fixes: replace int with Py_ssize_t where appropiate
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r-- | numpy/core/src/arraymethods.c | 5 |
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; |