From 6460a15d949eba3f79428a08df88854b9ede611d Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sat, 13 May 2017 14:34:36 +1200 Subject: [PATCH] Fixed warning with clang --- sway/layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/layout.c b/sway/layout.c index ec92b8f0e..7489a24af 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -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); } }