summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2006-09-28 11:20:52 +0000
committercookedm <cookedm@localhost>2006-09-28 11:20:52 +0000
commit0698cb7e52b7dab046b28322d37f28050257e9c0 (patch)
treec05bdcc72bda91e44fc7a3b1e25804ef0263c296 /numpy/core/src/arraymethods.c
parentf9409c5e14dc38047365b30da7d1ee2f2084fc72 (diff)
downloadnumpy-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.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;