Skip to content

Commit cd527bf

Browse files
authored
Make the crate compile for targets that unsigned C char (#275)
1 parent 647c411 commit cd527bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harfbuzz/src/unicode_funcs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl UnicodeFuncsBuilder {
138138
user_data: *mut c_void,
139139
) -> hb_codepoint_t {
140140
let code = unsafe { &*(user_data as *mut F) }.script(hb_codepoint_t_to_char(unicode));
141-
unsafe { hb_script_from_string(code.as_ptr() as *const i8, 4) }
141+
unsafe { hb_script_from_string(code.as_ptr() as *const core::ffi::c_char, 4) }
142142
}
143143
extern "C" fn destroy_script<F>(user_data: *mut c_void) {
144144
let _ = unsafe { Box::from_raw(user_data as *mut F) };

0 commit comments

Comments
 (0)