diff --git a/src/xkbcomp/action.c b/src/xkbcomp/action.c index a1a8188..9a0b5d5 100644 --- a/src/xkbcomp/action.c +++ b/src/xkbcomp/action.c @@ -572,7 +572,7 @@ HandlePtrBtn(struct xkb_keymap *keymap, union xkb_action *action, return false; } - act->count = (uint16_t) val; + act->count = (uint8_t) val; return true; } return ReportIllegal(keymap, action->type, field);