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

numpy-svn@scip... numpy-svn@scip...
Fri Nov 9 14:48:19 CST 2007


Author: oliphant
Date: 2007-11-09 14:48:17 -0600 (Fri, 09 Nov 2007)
New Revision: 4427

Modified:
   trunk/numpy/core/src/scalartypes.inc.src
Log:
Fix up empty if statement probem.

Modified: trunk/numpy/core/src/scalartypes.inc.src
===================================================================
--- trunk/numpy/core/src/scalartypes.inc.src	2007-11-09 10:48:37 UTC (rev 4426)
+++ trunk/numpy/core/src/scalartypes.inc.src	2007-11-09 20:48:17 UTC (rev 4427)
@@ -282,10 +282,9 @@
         if (outcode == NULL) return r;
 
         if (outcode->type_num == typecode->type_num) {
-                if (!PyTypeNum_ISEXTENDED(typecode->type_num))
+                if (!PyTypeNum_ISEXTENDED(typecode->type_num) || 
+	             (outcode->elsize == typecode->elsize))
                         return r;
-                if (outcode->elsize == typecode->elsize);
-                return r;
         }
 
         /* cast if necessary to desired output typecode */



More information about the Numpy-svn mailing list