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

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Dec 4 23:39:28 CST 2006


Author: oliphant
Date: 2006-12-04 23:39:24 -0600 (Mon, 04 Dec 2006)
New Revision: 3477

Modified:
   trunk/numpy/core/src/multiarraymodule.c
Log:
Fix compiler warnings.'


Modified: trunk/numpy/core/src/multiarraymodule.c
===================================================================
--- trunk/numpy/core/src/multiarraymodule.c	2006-12-04 20:33:09 UTC (rev 3476)
+++ trunk/numpy/core/src/multiarraymodule.c	2006-12-05 05:39:24 UTC (rev 3477)
@@ -2491,9 +2491,9 @@
         
 	/* Determine if we should use new algorithm or not */
 	if (op2->descr->f->argsort[which] != NULL) {
-		ret = _new_argsort(op2, axis, which);
-                Py_DECREF(op2);
-                return ret;
+		ret = (PyArrayObject *)_new_argsort(op2, axis, which);
+		Py_DECREF(op2);
+		return (PyObject *)ret;
 	}
 
 	if ((which != PyArray_QUICKSORT) || op2->descr->f->compare == NULL) {



More information about the Numpy-svn mailing list