x11: fix build on arm
The c_char type, which was used under the hood is different depending on arch, thus use it directly instead of i8. Fixes #3735.
This commit is contained in:
parent
34c15608e0
commit
d8ffd4bb26
2 changed files with 5 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ struct PreeditCallbacks {
|
|||
impl PreeditCallbacks {
|
||||
pub fn new(client_data: ffi::XPointer) -> PreeditCallbacks {
|
||||
let start_callback = create_xim_callback(client_data, unsafe {
|
||||
mem::transmute::<usize, unsafe extern "C" fn(ffi::XIM, *mut i8, *mut i8)>(
|
||||
mem::transmute::<usize, unsafe extern "C" fn(ffi::XIM, ffi::XPointer, ffi::XPointer)>(
|
||||
preedit_start_callback as usize,
|
||||
)
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue