From 2abff2a0988a3a87d900e76b05d5bddd64a50f73 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 7 Feb 2014 17:29:34 +0200 Subject: [PATCH] state: use the XKB_MOD_MASK constant Signed-off-by: Ran Benita --- src/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4