summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-02-09 20:00:48 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-02-09 20:00:48 +0000
commit96660d8f37a78c4b1aad4b305783426f09cd5479 (patch)
tree2561136c015deeefe424d0b2cdb323447267cf8c /numpy/core/src/arraymethods.c
parentde63203a32c9ce24cb1cd090a232c47833476dfd (diff)
downloadnumpy-96660d8f37a78c4b1aad4b305783426f09cd5479.tar.gz
Fix error in implementation of itemset for >= 2-d arrays.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c2
1 files changed, 1 insertions, 1 deletions
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;