compat: fix bad interpret predicate mods "all" calculation
authorRan Benita <ran234@gmail.com>
Mon, 8 Oct 2012 20:11:18 +0000 (22:11 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 8 Oct 2012 23:36:48 +0000 (10:36 +1100)
commit2ac319c54ab2072709916cced2e0eb8c8d37f859
tree2373367b665fdb6124ab3d24961fa62dc85a0a23
parent9984d1d03cd78eb636c75cc2bbd2d240dc1dd72f
compat: fix bad interpret predicate mods "all" calculation

Commit 9984d1d03cd78eb636c75cc2bbd2d240dc1dd72f changed the type of
interpret->mods to xkb_mod_mask_t, but this bit of code assumes that the
type is uint8_t.
This code is not usually run (for example by our tests), but when it
does keymap-dump would print out all of the modifiers (including the
virtual ones) which causes recompilation of the output to fail
miserably.

https://bugs.freedesktop.org/show_bug.cgi?id=55769

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/compat.c