File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
3
- Unreleased
4
+ - Fix build on platforms where ` c_char ` is ` u8 ` like Linux/AArch64. ([ #296 ] ( https://github.com/PyO3/rust-numpy/pull/296 ) )
4
5
5
6
- v0.16.1
6
7
- Fix build when PyO3's ` multiple-pymethods ` feature is used. ([ #288 ] ( https://github.com/PyO3/rust-numpy/pull/288 ) )
Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ pub const NPY_NEEDS_INIT: npy_char = 0x08;
71
71
pub const NPY_NEEDS_PYAPI : npy_char = 0x10 ;
72
72
pub const NPY_USE_GETITEM : npy_char = 0x20 ;
73
73
pub const NPY_USE_SETITEM : npy_char = 0x40 ;
74
- pub const NPY_ALIGNED_STRUCT : npy_char = -128 ; // 0x80
74
+ #[ allow( overflowing_literals) ]
75
+ pub const NPY_ALIGNED_STRUCT : npy_char = 0x80 ;
75
76
pub const NPY_FROM_FIELDS : npy_char =
76
77
NPY_NEEDS_INIT | NPY_LIST_PICKLE | NPY_ITEM_REFCOUNT | NPY_NEEDS_PYAPI ;
77
78
pub const NPY_OBJECT_DTYPE_FLAGS : npy_char = NPY_LIST_PICKLE
You can’t perform that action at this time.
0 commit comments