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

numpy-svn@scip... numpy-svn@scip...
Thu Aug 14 17:30:18 CDT 2008


Author: stefan
Date: 2008-08-14 17:30:17 -0500 (Thu, 14 Aug 2008)
New Revision: 5654

Modified:
   trunk/numpy/core/src/ufuncobject.c
Log:
Fix warnings in ufunc code [patch by Wenjie Fu].


Modified: trunk/numpy/core/src/ufuncobject.c
===================================================================
--- trunk/numpy/core/src/ufuncobject.c	2008-08-14 21:58:13 UTC (rev 5653)
+++ trunk/numpy/core/src/ufuncobject.c	2008-08-14 22:30:17 UTC (rev 5654)
@@ -1383,7 +1383,7 @@
 static int
 _parse_signature(PyUFuncObject *self, const char *signature)
 {
-    int len;
+    size_t len;
     char const **var_names;
     int nd = 0;             /* number of dimension of the current argument */
     int cur_arg = 0;        /* index into core_num_dims&core_offsets */
@@ -1496,10 +1496,10 @@
     /* check for trivial core-signature, e.g. "(),()->()" */
     if (cur_core_dim == 0)
         self->core_enabled = 0;
-    _pya_free(var_names);
+    _pya_free((void*)var_names);
     return 0;
 fail:
-    _pya_free(var_names);
+    _pya_free((void*)var_names);
     if (parse_error) {
 	char *buf = _pya_malloc(sizeof(char) * (len + 200));
 	if (buf) {



More information about the Numpy-svn mailing list