-
Notifications
You must be signed in to change notification settings - Fork 426
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
Use fixed width integers for underlying enum types #443
Comments
The joys of LP64 vs. LLP64.
Thanks for the feedback. I'm debating the right solution here. I had originally used I don't know that maintaining the link compatibility of |
All enums exposed in the api use either the default
int
orunsigned long
for their underlying type. This is an issue for building ffi bindings, because the size of these types vary across platforms. In particular,sizeof(unsigned long)
is4
on windows, but8
on linux. Based on your code, you expect these enums to have an exact width consistent across platforms, so it should be simple enough to declare all enums usinguintN_t
as their underlying type.The text was updated successfully, but these errors were encountered: