You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: update GitHub Actions to use ubuntu-22.04-arm for all jobs (#169)
* chore: update GitHub Actions to use ubuntu-22.04-arm for all jobs
* fix(ffi): use c_char instead of i8 for platform-agnostic FFI types
Replace hardcoded i8 casts with c_char to fix ARM compilation errors.
On ARM architectures, c_char is u8 (not i8 as on x86/x86_64), causing
type mismatches in FFI test code.
- Replace all *mut i8 and *const i8 casts with c_char equivalents
- Update array declarations from [0i8; N] to [0u8; N] with proper casting
- Add c_char import to all affected test files
* fix(ffi): use .cast() instead of as cast for raw pointer conversion
Replace 'as *mut u8' casts with .cast::<u8>() method to fix clippy
warnings about unnecessary casts on ARM architectures.
On ARM, c_char is u8, making the explicit cast unnecessary. Using
.cast::<u8>() is the modern Rust approach and avoids clippy warnings
while maintaining platform compatibility.
0 commit comments