Skip to content

Commit a81014c

Browse files
committed
Merge branch 'release-0.16'
2 parents cc2456e + 9ec102d commit a81014c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
- Unreleased
44

5+
- v0.16.2
6+
- Fix build on platforms where `c_char` is `u8` like Linux/AArch64. ([#296](https://github.com/PyO3/rust-numpy/pull/296))
7+
58
- v0.16.1
69
- Fix build when PyO3's `multiple-pymethods` feature is used. ([#288](https://github.com/PyO3/rust-numpy/pull/288))
710

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "numpy"
3-
version = "0.16.1"
3+
version = "0.16.2"
44
authors = [
55
"The rust-numpy Project Developers",
66
"PyO3 Project and Contributors <https://github.com/PyO3>"

src/npyffi/flags.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ pub const NPY_NEEDS_INIT: npy_char = 0x08;
7171
pub const NPY_NEEDS_PYAPI: npy_char = 0x10;
7272
pub const NPY_USE_GETITEM: npy_char = 0x20;
7373
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;
7576
pub const NPY_FROM_FIELDS: npy_char =
7677
NPY_NEEDS_INIT | NPY_LIST_PICKLE | NPY_ITEM_REFCOUNT | NPY_NEEDS_PYAPI;
7778
pub const NPY_OBJECT_DTYPE_FLAGS: npy_char = NPY_LIST_PICKLE

0 commit comments

Comments
 (0)