Skip to content

Commit

Permalink
Miscellaneous int types fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wismill committed Feb 12, 2025
1 parent 200c14a commit ce3e9d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/keysym.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static bool
parse_keysym_hex(const char *s, uint32_t *out)
{
uint32_t result = 0;
int i;
unsigned int i;
for (i = 0; i < 8 && s[i] != '\0'; i++) {
result <<= 4;
if ('0' <= s[i] && s[i] <= '9')
Expand Down
4 changes: 2 additions & 2 deletions src/xkbcomp/keymap-dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ write_actions(struct xkb_keymap *keymap, struct buf *buf, struct buf *buf2,
for (xkb_level_index_t level = 0; level < XkbKeyNumLevels(key, group);
level++) {
const union xkb_action *actions;
int count;
unsigned int count;

if (level != 0)
write_buf(buf, ", ");
Expand All @@ -418,7 +418,7 @@ write_actions(struct xkb_keymap *keymap, struct buf *buf, struct buf *buf2,
}
else {
write_buf(buf2, "{ ");
for (int k = 0; k < count; k++) {
for (unsigned int k = 0; k < count; k++) {
if (k != 0)
write_buf(buf2, ", ");
size_t old_size = buf2->size;
Expand Down

0 comments on commit ce3e9d2

Please sign in to comment.