mirror of
https://github.com/swaywm/sway.git
synced 2024-11-27 02:11:28 +00:00
[fix] Keep Clang happy
This commit is contained in:
parent
2040c62da9
commit
d822150d83
|
@ -1504,7 +1504,9 @@ bool is_auto_layout(enum swayc_layouts layout) {
|
||||||
* Return the number of master elements in a container
|
* Return the number of master elements in a container
|
||||||
*/
|
*/
|
||||||
static inline size_t auto_master_count(const swayc_t *container) {
|
static inline size_t auto_master_count(const swayc_t *container) {
|
||||||
return MIN(container->nb_master, container->children->length);
|
sway_assert(container->children->length >= 0, "Container %p has (negative) children %d",
|
||||||
|
container, container->children->length);
|
||||||
|
return MIN(container->nb_master, (size_t)container->children->length);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue