Skip to content

Commit ce3e9d2

Browse files
committed
Miscellaneous int types fixes
1 parent 200c14a commit ce3e9d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/keysym.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static bool
190190
parse_keysym_hex(const char *s, uint32_t *out)
191191
{
192192
uint32_t result = 0;
193-
int i;
193+
unsigned int i;
194194
for (i = 0; i < 8 && s[i] != '\0'; i++) {
195195
result <<= 4;
196196
if ('0' <= s[i] && s[i] <= '9')

src/xkbcomp/keymap-dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ write_actions(struct xkb_keymap *keymap, struct buf *buf, struct buf *buf2,
398398
for (xkb_level_index_t level = 0; level < XkbKeyNumLevels(key, group);
399399
level++) {
400400
const union xkb_action *actions;
401-
int count;
401+
unsigned int count;
402402

403403
if (level != 0)
404404
write_buf(buf, ", ");
@@ -418,7 +418,7 @@ write_actions(struct xkb_keymap *keymap, struct buf *buf, struct buf *buf2,
418418
}
419419
else {
420420
write_buf(buf2, "{ ");
421-
for (int k = 0; k < count; k++) {
421+
for (unsigned int k = 0; k < count; k++) {
422422
if (k != 0)
423423
write_buf(buf2, ", ");
424424
size_t old_size = buf2->size;

0 commit comments

Comments
 (0)