-
Notifications
You must be signed in to change notification settings - Fork 776
Open
Labels
Description
Input C/C++ Header
#define FOO 253Bindgen Invocation
$ bindgen input.h
Actual Results
/* automatically generated by rust-bindgen */
pub const FOO: u32 = 253;Expected Results
/* automatically generated by rust-bindgen */
pub const FOO: ::std::os::raw::c_int = 253;Summary
Bindgen outputs a u32 instead of c_int for defines. This makes them difficult to work with due to signedness mismatch.
vurvdev