-
Notifications
You must be signed in to change notification settings - Fork 813
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
C API: u8 in Rust corresponds to unsigned char* in C #3597
C API: u8 in Rust corresponds to unsigned char* in C #3597
Conversation
Ah yes, good catch. |
I would suggest to add the flags |
We can't move from the standard If you want to change the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't merge this as this file is just a mirror of:
https://github.com/WebAssembly/wasm-c-api/blob/main/include/wasm.h#L478
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing this as stale, but feel free to reopen the PR once wasm-c-api merges this upstream |
Pull request was closed
Description
wasm_memory_data returns type is *mut u8 which corresponds in C to
unsigned char *
.byte_t
is used in the C API to represent*mut u8
but it is an alias for char.When compiling, we get the following warning:
This MR changes the return type from
byte_t
tounsigned char
.