Fix npy_bool signedness
authorAndrea Bedini <andrea.bedini@gmail.com>
Mon, 11 Nov 2013 08:29:59 +0000 (19:29 +1100)
committerAndrea Bedini <andrea.bedini@gmail.com>
Mon, 11 Nov 2013 08:29:59 +0000 (19:29 +1100)
From numpy's definition in

https://github.com/numpy/numpy/blob/master/numpy/core/include/numpy/npy_common.h#L211

```typedef unsigned char npy_bool;```

Cython/Includes/numpy/__init__.pxd

index 4f347d6..c8f9fef 100644 (file)
@@ -293,7 +293,7 @@ cdef extern from "numpy/arrayobject.h":
                 # info.shape was stored after info.strides in the same block
 
 
-    ctypedef signed char      npy_bool
+    ctypedef unsigned char      npy_bool
 
     ctypedef signed char      npy_byte
     ctypedef signed short     npy_short