From 03729690b7137c1bdbe8b1d3b770ef8493300126 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 Sep 2015 18:28:28 +0100 Subject: Fix some minor warnings. --- src/libutil/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libutil') diff --git a/src/libutil/map.c b/src/libutil/map.c index e632fc871..2ef68302e 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -287,7 +287,7 @@ read_map_file (struct rspamd_map *map, struct file_map_data *data) } if (remain != NULL && remain > buf) { - g_assert (rlen <= sizeof (buf) - 2); + g_assert (rlen <= (gint)sizeof (buf) - 2); buf[rlen++] = '\n'; buf[rlen] = '\0'; tlen += rlen; -- cgit v1.2.3