Skip to content

Commit ee3d057

Browse files
committed
Correct the type of c_char.
On ARM64, it is supposed to be unsigned char: $ aarch64-unknown-cloudabi-cc -dM -E - < /dev/null | grep __CHAR_UNSIGNED__ #define __CHAR_UNSIGNED__ 1
1 parent 2b4cd10 commit ee3d057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cloudabi/aarch64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub type c_char = i8;
1+
pub type c_char = u8;
22
pub type c_long = i64;
33
pub type c_ulong = u64;
44
pub type wchar_t = u32;

0 commit comments

Comments
 (0)