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>
master
Ran Benita 2021-03-28 13:01:57 +03:00
parent 95e2907978
commit 62b5b4a170
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}