Fix compilation on aarch64-linux

aarch64 defines `c_char` as `u8` and not `i8`. Use `c_char`
alias directly.
This commit is contained in:
Imbris 2023-06-09 07:46:01 -04:00 committed by GitHub
parent b5785ba785
commit 0c8bf25ae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,7 @@ impl KbdState {
/// `xkb_state_key_get_utf8`.
fn make_string_with<F>(&mut self, mut f: F) -> Option<SmolStr>
where
F: FnMut(*mut i8, usize) -> i32,
F: FnMut(*mut c_char, usize) -> i32,
{
let size = f(ptr::null_mut(), 0);
if size == 0 {