diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-06 12:57:33 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-06 12:57:33 +0000 |
commit | aa17d93cc0f4beae1973646131a1caba5536b336 (patch) | |
tree | c27c9881e5f3e18d87b0a2808ce9d8144dd91b7d /numpy/core/src/arrayobject.c | |
parent | c1b2fc12263b652898d4e7d539aabaf31176629c (diff) | |
download | numpy-aa17d93cc0f4beae1973646131a1caba5536b336.tar.gz |
Get rid of silly returns in scalar-math module which was preventing it's working.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 58c7f84c6..759394744 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -709,7 +709,7 @@ index2ptr(PyArrayObject *mp, intp i) if (i==0 && dim0 > 0) return mp->data; - if (mp->nd>0 && i>0 && i < dim0) { + if (i>0 && i < dim0) { return mp->data+i*mp->strides[0]; } PyErr_SetString(PyExc_IndexError,"index out of bounds"); |