[Numpy-svn] r3545 - trunk/numpy/core/src
numpy-svn at scipy.org
numpy-svn at scipy.org
Fri Feb 9 15:00:51 EST 2007
Author: oliphant
Date: 2007-02-09 14:00:48 -0600 (Fri, 09 Feb 2007)
New Revision: 3545
Modified:
trunk/numpy/core/src/arraymethods.c
Log:
Fix error in implementation of itemset for >= 2-d arrays.
Modified: trunk/numpy/core/src/arraymethods.c
===================================================================
--- trunk/numpy/core/src/arraymethods.c 2007-02-09 17:55:37 UTC (rev 3544)
+++ trunk/numpy/core/src/arraymethods.c 2007-02-09 20:00:48 UTC (rev 3545)
@@ -615,7 +615,7 @@
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;
More information about the Numpy-svn
mailing list