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

numpy-svn@scip... numpy-svn@scip...
Sat Jul 28 08:28:23 CDT 2007


Author: pearu
Date: 2007-07-28 08:28:18 -0500 (Sat, 28 Jul 2007)
New Revision: 3934

Modified:
   trunk/numpy/core/src/ufuncobject.c
Log:
Fix more compiler warnings.

Modified: trunk/numpy/core/src/ufuncobject.c
===================================================================
--- trunk/numpy/core/src/ufuncobject.c	2007-07-28 13:16:12 UTC (rev 3933)
+++ trunk/numpy/core/src/ufuncobject.c	2007-07-28 13:28:18 UTC (rev 3934)
@@ -712,7 +712,7 @@
                 }
         }
         else if PyString_Check(type_tup) {
-                int slen;
+                Py_ssize_t slen;
                 char *thestr;
                 slen = PyString_GET_SIZE(type_tup);
                 thestr = PyString_AS_STRING(type_tup);
@@ -1110,11 +1110,12 @@
 
 #undef _GETATTR_
 
-static int
+static Py_ssize_t
 construct_arrays(PyUFuncLoopObject *loop, PyObject *args, PyArrayObject **mps,
                  PyObject *typetup)
 {
-        int nargs, i;
+        Py_ssize_t nargs;
+        int i;
         int arg_types[NPY_MAXARGS];
 	PyArray_SCALARKIND scalars[NPY_MAXARGS];
         PyArray_SCALARKIND maxarrkind, maxsckind, new;
@@ -2953,7 +2954,8 @@
 static void
 _find_array_wrap(PyObject *args, PyObject **output_wrap, int nin, int nout)
 {
-	int nargs, i;
+        Py_ssize_t nargs;
+	int i;
 	int np = 0;
 	double priority, maxpriority;
 	PyObject *with_wrap[NPY_MAXARGS], *wraps[NPY_MAXARGS];



More information about the Numpy-svn mailing list