We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was trying to compile a module on a Raspberry Pi(aarch64) and I encountered the following error:
aarch64
--> /srv/mcaptchaguard/.cargo/registry/src/github.com-1ecc6299db9ec823/redis-module-0.21.0/src/context/mod.rs:175:21 | 175 | s.as_ptr() as *const i8, | ^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `i8` | = note: expected raw pointer `*const u8` found raw pointer `*const i8`
I applied the suggested fix and the compilation succeeded.
Rust doc says std::os::raw::c_char can either be i8 or u8 but I don't understand why i8 would fail to compile.
std::os::raw::c_char
i8
u8
Here's the module source code
The same module compiles fine on x86_64.
x86_64
The text was updated successfully, but these errors were encountered:
Hi @realaravinth, I have reproduced this now and will look into it.
Sorry, something went wrong.
Fix #171: use platform independent c_char type
102e2bf
The fix was simple; you can use the PR branch if you're in a hurry or wait a bit until it's merged.
Alright, thanks for the fix!
33dc2a5
gavrie
No branches or pull requests
I was trying to compile a module on a Raspberry Pi(
aarch64
) and I encountered the following error:I applied the suggested fix and the compilation succeeded.
Rust doc says
std::os::raw::c_char
can either bei8
oru8
but I don't understand whyi8
would fail to compile.Here's the module source code
The same module compiles fine on
x86_64
.The text was updated successfully, but these errors were encountered: