Commit e2c336cb96b5651141def2f8c90ec1766488918d

Ran Benita 2014-02-08T15:06:28

action: fix misleading cast The type is uint8_t and so is the checked range. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
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);