degesch: silence compiler warnings

This commit is contained in:
Přemysl Eric Janouch 2015-07-11 01:53:04 +02:00
parent 5ddf963e33
commit 0a657a0294

View File

@ -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;