From 263d3bb2ba769de7d4fcfb6d91674d3aa5c83b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 30 Jul 2019 20:27:19 +0200 Subject: [PATCH] input: fix 'comparison ... is always true' warning (clang) --- input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/input.c b/input.c index ffa676e2..783d8f52 100644 --- a/input.c +++ b/input.c @@ -206,16 +206,16 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, } if (!found_map) { - char buf[64] = {0}; + uint8_t buf[64] = {0}; int count = 0; if (compose_status == XKB_COMPOSE_COMPOSED) { count = xkb_compose_state_get_utf8( - term->kbd.xkb_compose_state, buf, sizeof(buf)); + term->kbd.xkb_compose_state, (char *)buf, sizeof(buf)); xkb_compose_state_reset(term->kbd.xkb_compose_state); } else { count = xkb_state_key_get_utf8( - term->kbd.xkb_state, key, buf, sizeof(buf)); + term->kbd.xkb_state, key, (char *)buf, sizeof(buf)); } if (count > 0) {