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

numpy-svn@scip... numpy-svn@scip...
Thu Feb 22 01:38:55 CST 2007


Author: oliphant
Date: 2007-02-22 01:38:53 -0600 (Thu, 22 Feb 2007)
New Revision: 3552

Modified:
   trunk/numpy/core/src/multiarraymodule.c
Log:
Undo the change.  It breaks the desired behavior.

Modified: trunk/numpy/core/src/multiarraymodule.c
===================================================================
--- trunk/numpy/core/src/multiarraymodule.c	2007-02-22 07:37:28 UTC (rev 3551)
+++ trunk/numpy/core/src/multiarraymodule.c	2007-02-22 07:38:53 UTC (rev 3552)
@@ -1902,14 +1902,14 @@
 		if (PyTypeNum_ISUSERDEF(neededtype)) return FALSE;
 		switch(scalar) {
 		case PyArray_INTPOS_SCALAR:
-			return (neededtype >= PyArray_LONG);
+			return (neededtype >= PyArray_BYTE);
 		case PyArray_INTNEG_SCALAR:
-			return (neededtype >= PyArray_LONG) &&	\
+			return (neededtype >= PyArray_BYTE) &&	\
 				!(PyTypeNum_ISUNSIGNED(neededtype));
 		case PyArray_FLOAT_SCALAR:
-			return (neededtype >= PyArray_DOUBLE);
+			return (neededtype >= PyArray_FLOAT);
 		case PyArray_COMPLEX_SCALAR:
-			return (neededtype >= PyArray_CDOUBLE);
+			return (neededtype >= PyArray_CFLOAT);
 		default:
 			return 1; /* should never get here... */
 		}



More information about the Numpy-svn mailing list