Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bindgen generating i64 instead of u64 #2874

Closed
redeexpressos opened this issue Jul 30, 2024 · 2 comments
Closed

bindgen generating i64 instead of u64 #2874

redeexpressos opened this issue Jul 30, 2024 · 2 comments

Comments

@redeexpressos
Copy link

redeexpressos commented Jul 30, 2024

Input C/C++ Header

#define UAVCAN_PROTOCOL_GETNODEINFO_REQUEST_SIGNATURE (0xEE468A8121C46A9EULL)

Bindgen Invocation

    let bindings = bindgen::Builder::default()
        .clang_arg("-Iexternal/libcanard")
        .header("wrapper.h")
        .generate()
        .expect("Unable to generate bindings");
pub const UAVCAN_PROTOCOL_GETNODEINFO_REQUEST_SIGNATURE: i64 = -1277181157091022178;

Expected Results

Shouldnt it generate an u64?

@ojeda
Copy link
Contributor

ojeda commented Jul 30, 2024

See as well #2120 and #1594.

@pvdrz
Copy link
Contributor

pvdrz commented Sep 7, 2024

yep closing as duplicate of #1594

@pvdrz pvdrz closed this as completed Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants