summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
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;