summaryrefslogtreecommitdiff
path: root/src/keymap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.h')
-rw-r--r--src/keymap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keymap.h b/src/keymap.h
index 71d5ca0..dd6bde6 100644
--- a/src/keymap.h
+++ b/src/keymap.h
@@ -398,9 +398,9 @@ struct xkb_keymap {
};
#define xkb_foreach_key(iter, keymap) \
- for (iter = keymap->keys + keymap->min_key_code; \
- iter <= keymap->keys + keymap->max_key_code; \
- iter++)
+ for ((iter) = (keymap)->keys + (keymap)->min_key_code; \
+ (iter) <= (keymap)->keys + (keymap)->max_key_code; \
+ (iter)++)
static inline const struct xkb_key *
XkbKey(struct xkb_keymap *keymap, xkb_keycode_t kc)