diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-30 18:27:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-30 18:27:19 +0000 |
| commit | 263d3bb2ba769de7d4fcfb6d91674d3aa5c83b2b (patch) | |
| tree | 23f786adf5e96e2e8f59269ef2dd272af19023c9 /input.c | |
| parent | render: only explicitly re-render old cursor cell if it isn't dirty (diff) | |
input: fix 'comparison ... is always true' warning (clang)
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |
