mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
Fixed warning with clang
This commit is contained in:
parent
861e32a8ab
commit
6460a15d94
1 changed files with 2 additions and 2 deletions
|
|
@ -1656,7 +1656,7 @@ int auto_group_start_index(const swayc_t *container, int index) {
|
|||
} else {
|
||||
start_idx = idx2 + ((index - idx2) / (grp_sz + 1)) * (grp_sz + 1);
|
||||
}
|
||||
return MIN(start_idx, container->children->length);
|
||||
return MIN(start_idx, (ssize_t)container->children->length);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1684,7 +1684,7 @@ int auto_group_end_index(const swayc_t *container, int index) {
|
|||
nxt_idx = idx2 + ((index - idx2) / (grp_sz + 1) + 1) * (grp_sz + 1);
|
||||
}
|
||||
}
|
||||
return MIN(nxt_idx, container->children->length);
|
||||
return MIN(nxt_idx, (ssize_t)container->children->length);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue