summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-02-07 17:29:34 +0200
committerRan Benita <ran234@gmail.com>2014-02-07 17:29:34 +0200
commit2abff2a0988a3a87d900e76b05d5bddd64a50f73 (patch)
tree7d30b08001181d64121d7147be85959bfa3a24e5 /src/state.c
parented18f7dde661e63528a12a63a32d2dceecec01bb (diff)
downloadxorg-lib-libxkbcommon-2abff2a0988a3a87d900e76b05d5bddd64a50f73.tar.gz
state: use the XKB_MOD_MASK constant
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c2
1 files changed, 1 insertions, 1 deletions
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;