[Numpy-svn] r8274 - trunk/numpy/f2py/src

numpy-svn@scip... numpy-svn@scip...
Sat Mar 6 13:11:30 CST 2010


Author: ptvirtan
Date: 2010-03-06 13:11:30 -0600 (Sat, 06 Mar 2010)
New Revision: 8274

Modified:
   trunk/numpy/f2py/src/fortranobject.c
Log:
BUG: f2py: ensure that ARRAY_ISCOMPATIBLE macro handles also booleans

Modified: trunk/numpy/f2py/src/fortranobject.c
===================================================================
--- trunk/numpy/f2py/src/fortranobject.c	2010-03-06 19:10:14 UTC (rev 8273)
+++ trunk/numpy/f2py/src/fortranobject.c	2010-03-06 19:11:30 UTC (rev 8274)
@@ -529,6 +529,7 @@
     (  (PyArray_ISINTEGER(arr) && PyTypeNum_ISINTEGER(type_num))        \
        ||(PyArray_ISFLOAT(arr) && PyTypeNum_ISFLOAT(type_num))          \
        ||(PyArray_ISCOMPLEX(arr) && PyTypeNum_ISCOMPLEX(type_num))      \
+       ||(PyArray_ISBOOL(arr) && PyTypeNum_ISBOOL(type_num))            \
        )
 
 extern



More information about the Numpy-svn mailing list