action: fix misleading cast

The type is uint8_t and so is the checked range.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-02-08 15:06:28 +02:00
parent bbd2a9c048
commit e2c336cb96
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ HandlePtrBtn(struct xkb_keymap *keymap, union xkb_action *action,
return false; return false;
} }
act->count = (uint16_t) val; act->count = (uint8_t) val;
return true; return true;
} }
return ReportIllegal(keymap, action->type, field); return ReportIllegal(keymap, action->type, field);