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

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Oct 17 12:19:32 CDT 2006


Author: oliphant
Date: 2006-10-17 12:19:29 -0500 (Tue, 17 Oct 2006)
New Revision: 3351

Modified:
   trunk/numpy/core/src/multiarraymodule.c
Log:
Change the 'array' function so that forcecast is true.

Modified: trunk/numpy/core/src/multiarraymodule.c
===================================================================
--- trunk/numpy/core/src/multiarraymodule.c	2006-10-17 17:14:25 UTC (rev 3350)
+++ trunk/numpy/core/src/multiarraymodule.c	2006-10-17 17:19:29 UTC (rev 3351)
@@ -5259,6 +5259,8 @@
                 flags |= ENSUREARRAY;
         }
 
+        flags |= NPY_FORCECAST;
+
         ret = PyArray_CheckFromAny(op, type, 0, 0, flags, NULL);
 
  finish:



More information about the Numpy-svn mailing list