Skip to content

fix: use platform C char in N-API bridge - #70

Merged
syrusakbary merged 5 commits into
mainfrom
codex/aarch64-c-char
Sep 2, 2026
Merged

fix: use platform C char in N-API bridge#70
syrusakbary merged 5 commits into
mainfrom
codex/aarch64-c-char

Conversation

@syrusakbary

Copy link
Copy Markdown
Member

Use core::ffi::c_char for C string pointers in the native bridge instead of hard-coding i8. This fixes compilation on AArch64 Linux, where C char is unsigned, while preserving the ABI on platforms where it is signed.

Validated locally with cargo fmt --all -- --check and cargo check -p wasmer-napi from the Wasmer integration checkout.

@syrusakbary
syrusakbary merged commit 68c8110 into main Sep 2, 2026
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants