From 8dfaf6265be52a582cc990f4332808d55063766f Mon Sep 17 00:00:00 2001 From: minus Date: Fri, 21 Aug 2015 16:53:11 +0200 Subject: fixed #108 signed/unsigned comparison --- sway/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/config.c') diff --git a/sway/config.c b/sway/config.c index 0afb0205..1ebd95ff 100644 --- a/sway/config.c +++ b/sway/config.c @@ -107,7 +107,7 @@ static char *get_config_path() { char *test = NULL; int i; - for (i = 0; i < sizeof(search_paths) / sizeof(char *); ++i) { + for (i = 0; i < (int)(sizeof(search_paths) / sizeof(char *)); ++i) { test = strdup(search_paths[i]); test = do_var_replacement(temp_config, test); sway_log(L_DEBUG, "Checking for config at %s", test); -- cgit v1.2.3