From 396b1abcd7b14add4b1b8d9dc841119adcc3ad22 Mon Sep 17 00:00:00 2001 From: cookedm Date: Sun, 1 Apr 2007 21:01:12 +0000 Subject: Fix compiler warning on AMD64 --- numpy/core/src/arrayobject.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'numpy/core/src/arrayobject.c') diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 22c9b642b..da9c14f98 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -2673,7 +2673,7 @@ array_subscript_simple(PyArrayObject *self, PyObject *op) static PyObject * array_subscript(PyArrayObject *self, PyObject *op) { - int nd, oned, fancy; + int nd, fancy; PyArrayObject *other; PyArrayMapIterObject *mit; @@ -2729,7 +2729,7 @@ array_subscript(PyArrayObject *self, PyObject *op) return (PyObject *)self; } else { - oned = 0; + intp oned = 0; Py_INCREF(self->descr); return PyArray_NewFromDescr(self->ob_type, self->descr, @@ -2747,6 +2747,7 @@ array_subscript(PyArrayObject *self, PyObject *op) fancy = fancy_indexing_check(op); if (fancy != SOBJ_NOTFANCY) { + int oned; oned = ((self->nd == 1) && !(PyTuple_Check(op) && PyTuple_GET_SIZE(op) > 1)); -- cgit v1.2.1