From 03b67742f6e3939ceae5f9587c60391d35259f6d Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Wed, 18 Mar 2020 19:47:57 +0100 Subject: Fix several sign-compare warnings --- search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'search.c') diff --git a/search.c b/search.c index 3a9e1e7..e0a8c5f 100644 --- a/search.c +++ b/search.c @@ -97,7 +97,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search) continue; /* Current window is ranked down. */ - if ((tier < nitems(tierp) - 1) && (cc->flags & CLIENT_ACTIVE)) + if (((unsigned)tier < nitems(tierp) - 1) && (cc->flags & CLIENT_ACTIVE)) tier++; /* Hidden window is ranked up. */ @@ -160,7 +160,7 @@ match_path_type(struct menu_q *resultq, char *search, int flag) struct menu *mi; char *pattern; glob_t g; - int i; + size_t i; xasprintf(&pattern, "%s*", search); if (glob(pattern, GLOB_MARK, NULL, &g) != 0) -- cgit v1.2.3-2-gb3c3