From e2c336cb96b5651141def2f8c90ec1766488918d Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 8 Feb 2014 15:06:28 +0200 Subject: [PATCH] action: fix misleading cast The type is uint8_t and so is the checked range. Signed-off-by: Ran Benita --- src/xkbcomp/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);