diff options
author | Pauli Virtanen <pav@iki.fi> | 2011-02-12 16:43:00 +0100 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2011-02-12 16:43:09 +0100 |
commit | ca9d4a73391630d3565ef04cbfaf3bf45e1c5474 (patch) | |
tree | be36727e431cd2af24b5691dd2455eb0caf18cec | |
parent | 543dbea2bd80d6abd9538a89450651e39196ed6b (diff) | |
download | numpy-ca9d4a73391630d3565ef04cbfaf3bf45e1c5474.tar.gz |
BUG: core: fix build on Python 2.4
-rw-r--r-- | numpy/core/src/multiarray/ctors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c index 71bb75e6c..4fb6bc781 100644 --- a/numpy/core/src/multiarray/ctors.c +++ b/numpy/core/src/multiarray/ctors.c @@ -785,7 +785,7 @@ discover_dimensions(PyObject *s, int *maxndim, npy_intp *d, int check_it, #if (PY_VERSION_HEX >= 0x02050000) d[i] = PyInt_AsSsize_t(PyTuple_GET_ITEM(new, i)); #else - d[i] = PyInt_AsInt(PyTuple_GET_ITEM(new, i)); + d[i] = PyInt_AsLong(PyTuple_GET_ITEM(new, i)); #endif if (d[i] < 0) { PyErr_SetString(PyExc_RuntimeError, |