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

UINTMAX64 can never be generated #2822

Open
jbaublitz opened this issue Apr 29, 2024 · 2 comments
Open

UINTMAX64 can never be generated #2822

jbaublitz opened this issue Apr 29, 2024 · 2 comments

Comments

@jbaublitz
Copy link
Contributor

Hi @emilio, while working on the fix for the case that wasn't handled in #2779, I noticed that bindgen can't support generating bindings for UINTMAX64. This is largely because all integers eventually get represented as an i64 so i64::MAX is the upper limit for u64 too. Is there any interest in a PR to support differentiating between u64 and i64 so that UINTMAX64 can be represented in bindgen?

@pvdrz
Copy link
Contributor

pvdrz commented May 9, 2024

👋

Right now, bindgen depends on cexpr to process object-like #define directives. AFAIK, that crate is abandoned and hasn't received any updates in 3 years. There's some ongoing work on migrating bindgen to cmacro which should handle such cases correctly.

@jbaublitz
Copy link
Contributor Author

Okay, is the work under control right now? I'm happy to help out, but if it's already in progress that's fine.

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

2 participants