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 11# Changelog
22
33- Unreleased
4+ - Fix build on platforms where ` c_char ` is ` u8 ` like Linux/AArch64. ([ #296 ] ( https://github.com/PyO3/rust-numpy/pull/296 ) )
45
56- v0.16.1
67 - 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;
7171pub const NPY_NEEDS_PYAPI : npy_char = 0x10 ;
7272pub const NPY_USE_GETITEM : npy_char = 0x20 ;
7373pub 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 ;
7576pub const NPY_FROM_FIELDS : npy_char =
7677 NPY_NEEDS_INIT | NPY_LIST_PICKLE | NPY_ITEM_REFCOUNT | NPY_NEEDS_PYAPI ;
7778pub const NPY_OBJECT_DTYPE_FLAGS : npy_char = NPY_LIST_PICKLE
You can’t perform that action at this time.
0 commit comments