x11: add explicit cast in mods conversion
Explicit is better and all. Signed-off-by: Ran Benita <ran234@gmail.com>master
parent
623602cb78
commit
125bb19ede
|
@ -92,7 +92,10 @@ translate_mods(uint8_t rmods, uint16_t vmods_low, uint16_t vmods_high)
|
||||||
{
|
{
|
||||||
/* We represent mod masks in a single uint32_t value, with real mods
|
/* We represent mod masks in a single uint32_t value, with real mods
|
||||||
* first and vmods after (though we don't make these distinctions). */
|
* first and vmods after (though we don't make these distinctions). */
|
||||||
return rmods | (vmods_low << 8) | (vmods_high << 16);
|
return
|
||||||
|
((xkb_mod_mask_t) rmods) |
|
||||||
|
((xkb_mod_mask_t) vmods_low << 8) |
|
||||||
|
((xkb_mod_mask_t) vmods_high << 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum xkb_action_controls
|
static enum xkb_action_controls
|
||||||
|
|
Loading…
Reference in New Issue