From 96660d8f37a78c4b1aad4b305783426f09cd5479 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 9 Feb 2007 20:00:48 +0000 Subject: Fix error in implementation of itemset for >= 2-d arrays. --- numpy/core/src/arraymethods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/arraymethods.c') diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index fcde13fae..fb0e102cd 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -615,7 +615,7 @@ array_setscalar(PyArrayObject *self, PyObject *args) { else { intp loc, index[MAX_DIMS]; PyObject *tupargs; - tupargs = PyTuple_GetSlice(args, 1, n+1); + tupargs = PyTuple_GetSlice(args, 0, n); nd = PyArray_IntpFromSequence(tupargs, index, MAX_DIMS); Py_DECREF(tupargs); if (nd < n) return NULL; -- cgit v1.2.1