Skip to content

Commit

Permalink
x11: fix comparison of integer expressions of different signedness
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bluetech committed Mar 28, 2021
1 parent 95e2907 commit 62b5b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x11/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 62b5b4a

Please sign in to comment.