--- Numeric-orig/Src/arrayobject.c 2004-11-30 13:49:18.000000000 -0500 +++ Numeric-64bit/Src/arrayobject.c 2005-01-28 20:39:59.498281888 -0500 @@ -2683,7 +2683,7 @@ return NULL; } - if (PyArray_As1D(&shape, (char **)&dimensions, &n, PyArray_LONG) == -1) return NULL; + if (PyArray_As1D(&shape, (char **)&dimensions, &n, PyArray_INT) == -1) return NULL; s_known = 1; i_unknown = -1; @@ -2734,7 +2734,8 @@ extern PyObject *PyArray_Take(PyObject *self0, PyObject *indices0, int axis) { PyArrayObject *self, *indices, *ret; int nd, shape[MAX_DIMS]; - int i, j, chunk, n, m, max_item, tmp; + int i, j, chunk, n, m, max_item; + long tmp; char *src, *dest; indices = ret = NULL; @@ -2807,7 +2808,8 @@ extern PyObject *PyArray_Put(PyObject *self0, PyObject *indices0, PyObject* values0) { PyArrayObject *indices, *values, *self; - int i, chunk, ni, max_item, nv, tmp; + int i, chunk, ni, max_item, nv; + long tmp; char *src, *dest; indices = NULL; @@ -2861,7 +2863,8 @@ extern PyObject *PyArray_PutMask(PyObject *self0, PyObject *mask0, PyObject* values0) { PyArrayObject *mask, *values, *self; - int i, chunk, ni, max_item, nv, tmp; + int i, chunk, ni, max_item, nv; + long tmp; char *src, *dest; mask = NULL;