summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 5aed2a6..c1d5a10 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -587,7 +587,7 @@ xkb_keymap_key_repeats(struct xkb_keymap *keymap, xkb_keycode_t kc)
XKB_EXPORT int
xkb_keymap_key_set_repeats(struct xkb_keymap *keymap, xkb_keycode_t kc, int enable)
{
- struct xkb_key *key = XkbKey(keymap, kc);
+ struct xkb_key *key = (struct xkb_key *)XkbKey(keymap, kc);
if (!key)
return 0;