[Numpy-svn] r3637 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sun Apr 1 16:01:15 CDT 2007


Author: cookedm
Date: 2007-04-01 16:01:12 -0500 (Sun, 01 Apr 2007)
New Revision: 3637

Modified:
   trunk/numpy/core/src/arrayobject.c
Log:
Fix compiler warning on AMD64


Modified: trunk/numpy/core/src/arrayobject.c
===================================================================
--- trunk/numpy/core/src/arrayobject.c	2007-04-01 20:32:07 UTC (rev 3636)
+++ trunk/numpy/core/src/arrayobject.c	2007-04-01 21:01:12 UTC (rev 3637)
@@ -2673,7 +2673,7 @@
 static PyObject *
 array_subscript(PyArrayObject *self, PyObject *op)
 {
-        int nd, oned, fancy;
+        int nd, fancy;
         PyArrayObject *other;
         PyArrayMapIterObject *mit;
 
@@ -2729,7 +2729,7 @@
                                 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 @@
         fancy = fancy_indexing_check(op);
 
         if (fancy != SOBJ_NOTFANCY) {
+                int oned;
                 oned = ((self->nd == 1) &&
                         !(PyTuple_Check(op) && PyTuple_GET_SIZE(op) > 1));
 



More information about the Numpy-svn mailing list