From: Ran Benita Date: Fri, 7 Feb 2014 15:29:34 +0000 (+0200) Subject: state: use the XKB_MOD_MASK constant X-Git-Tag: xkbcommon-0.4.1~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2abff2a0988a3a87d900e76b05d5bddd64a50f73;p=platform%2Fupstream%2Flibxkbcommon.git state: use the XKB_MOD_MASK constant Signed-off-by: Ran Benita --- diff --git a/src/state.c b/src/state.c index 768d47c..3f470b1 100644 --- a/src/state.c +++ b/src/state.c @@ -108,7 +108,7 @@ struct xkb_state { * < Left Shift down, Right Shift down, Left Shift Up > * the modifier should still be set. This keeps the count. */ - int16_t mod_key_count[sizeof(xkb_mod_mask_t) * 8]; + int16_t mod_key_count[XKB_MAX_MODS]; int refcnt; darray(struct xkb_filter) filters;