From 0a657a0294b67deebf4fc8d95e9e9220339c1036 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 11 Jul 2015 01:53:04 +0200 Subject: degesch: silence compiler warnings --- degesch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/degesch.c b/degesch.c index 440b588..6a25c18 100644 --- a/degesch.c +++ b/degesch.c @@ -4061,9 +4061,9 @@ irc_fetch_next_nickname (struct server *s) split_str_ignore_empty (get_config_string (s->config, "nicks"), ',', &v); char *result = NULL; - if (s->nick_counter >= 0 && s->nick_counter < v.len) + if (s->nick_counter >= 0 && (size_t) s->nick_counter < v.len) result = str_vector_steal (&v, s->nick_counter++); - if (s->nick_counter >= v.len) + if ((size_t) s->nick_counter >= v.len) // Exhausted all nicknames s->nick_counter = -1; -- cgit v1.2.3-70-g09d2