diff options
author | David Cournapeau <cournape@gmail.com> | 2009-03-16 18:01:07 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-03-16 18:01:07 +0000 |
commit | c931ce60930fcbe4903a8384499798bea8fdf29a (patch) | |
tree | 680a931010583f88d5e6764e5e9dcd380a397b19 | |
parent | 12038dbd9b47dbbe61fc8f513451b58d250a80c9 (diff) | |
download | numpy-c931ce60930fcbe4903a8384499798bea8fdf29a.tar.gz |
Use Py_ssize_t for PyDict_Next.
-rw-r--r-- | numpy/core/src/hashdescr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/hashdescr.c b/numpy/core/src/hashdescr.c index 9a3968a19..b02825a98 100644 --- a/numpy/core/src/hashdescr.c +++ b/numpy/core/src/hashdescr.c @@ -81,7 +81,7 @@ clean_t: static int _array_descr_walk_fields(PyObject* fields, PyObject* l) { PyObject *key, *value, *foffset, *fdescr; - int pos = 0; + Py_ssize_t pos = 0; int st; while (PyDict_Next(fields, &pos, &key, &value)) { |