projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91886a4
)
Fix npy_bool signedness
author
Andrea Bedini
<andrea.bedini@gmail.com>
Mon, 11 Nov 2013 08:29:59 +0000
(19:29 +1100)
committer
Andrea 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
patch
|
blob
|
history
diff --git
a/Cython/Includes/numpy/__init__.pxd
b/Cython/Includes/numpy/__init__.pxd
index
4f347d6
..
c8f9fef
100644
(file)
--- a/
Cython/Includes/numpy/__init__.pxd
+++ b/
Cython/Includes/numpy/__init__.pxd
@@
-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
un
signed char npy_bool
ctypedef signed char npy_byte
ctypedef signed short npy_short