-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: use bindgen --size_t-is-usize option
This will give us identical bindings for all platforms regardless of what underlying C type they use to define size_t. For some reason, this isn't the default: rust-lang/rust-bindgen#1901 Previously, we generated different things on different platforms: x86-64: pub type size_t = ::std::os::raw::c_ulong; 32-bit arm: pub type size_t = ::std::os::raw::c_uint; It also lets us eliminate a couple of size_t casts in the Rust wrapper code. Bug: None Test: (cd rust/minijail; cargo test) Change-Id: Ic37fc7fb2cf2ad173b4bc184a499011d299c8917
- Loading branch information
1 parent
22388b9
commit bedb1b1
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters