summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2021-03-28 13:01:57 +0300
committerRan Benita <ran@unusedvar.com>2021-03-28 13:02:27 +0300
commit62b5b4a170377468c38121acb113d773b5253314 (patch)
treeef5c140c3b27271f91dbcacbbacba620f0eaeb81 /src
parent95e29079788a376c4b02d6c7f06ad8b447f3f935 (diff)
downloadlibxkbcommon-62b5b4a170377468c38121acb113d773b5253314.tar.gz
libxkbcommon-62b5b4a170377468c38121acb113d773b5253314.tar.bz2
libxkbcommon-62b5b4a170377468c38121acb113d773b5253314.zip
x11: fix comparison of integer expressions of different signedness
src/x11/keymap.c:980:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 980 | for (size_t i = 0; i < length; i++) { | ^ Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'src')
-rw-r--r--src/x11/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11/keymap.c b/src/x11/keymap.c
index ce0f7e7..df150d1 100644
--- a/src/x11/keymap.c
+++ b/src/x11/keymap.c
@@ -977,7 +977,7 @@ get_group_names(struct xkb_keymap *keymap, struct x11_atom_interner *interner,
keymap->num_group_names = msb_pos(reply->groupNames);
ALLOC_OR_FAIL(keymap->group_names, keymap->num_group_names);
- for (size_t i = 0; i < length; i++) {
+ for (int i = 0; i < length; i++) {
x11_atom_interner_adopt_atom(interner, iter[i],
&keymap->group_names[i]);
}