From 2eba51c0f603535dc2663f2666437305b287efb3 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 27 Aug 2012 09:37:01 +0300 Subject: [PATCH] symbols: remove comparison of unsigned >= 0 clang warning. Signed-off-by: Ran Benita --- src/xkbcomp/symbols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c index a48edbb..90e5da0 100644 --- a/src/xkbcomp/symbols.c +++ b/src/xkbcomp/symbols.c @@ -1585,7 +1585,7 @@ FindAutomaticType(struct xkb_keymap *keymap, xkb_level_index_t width, *typeNameRtrn = xkb_atom_intern(keymap->ctx, "FOUR_LEVEL"); /* XXX: why not set autoType here? */ } - return ((width >= 0) && (width <= 4)); + return width <= 4; } /**