test/state: fix tautological test

test/state.c:376:5: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-02-08 00:42:54 +02:00
parent 623b10f8c5
commit 94e0be0dc7
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ test_caps_keysym_transformation(struct xkb_keymap *keymap)
caps = xkb_keymap_mod_get_index(keymap, XKB_MOD_NAME_CAPS);
shift = xkb_keymap_mod_get_index(keymap, XKB_MOD_NAME_SHIFT);
assert(caps >= 0 && shift >= 0);
assert(caps != XKB_MOD_INVALID && shift != XKB_MOD_INVALID);
assert(xkb_state_key_get_layout(state, KEY_A + 8) == 0);
assert(xkb_state_key_get_layout(state, KEY_SEMICOLON + 8) == 0);