action: fix misleading cast
The type is uint8_t and so is the checked range. Signed-off-by: Ran Benita <ran234@gmail.com>master
parent
bbd2a9c048
commit
e2c336cb96
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue