Commit 485b736f1728fb05866383a3989fd625ecc5d776

Ran Benita 2014-09-25T21:25:39

symbols: use correct max value xkb_level_index_t was initially uint16_t, now it's 32. 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/symbols.c b/src/xkbcomp/symbols.c
index ce19715..c60756b 100644
--- a/src/xkbcomp/symbols.c
+++ b/src/xkbcomp/symbols.c
@@ -1245,7 +1245,7 @@ FindKeyForSymbol(struct xkb_keymap *keymap, xkb_keysym_t sym)
 {
     struct xkb_key *key, *ret = NULL;
     xkb_layout_index_t group, min_group = UINT32_MAX;
-    xkb_level_index_t level, min_level = UINT16_MAX;
+    xkb_level_index_t level, min_level = UINT32_MAX;
 
     xkb_keys_foreach(key, keymap) {
         for (group = 0; group < key->num_groups; group++) {