summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-autoget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/dcc/dcc-autoget.c')
-rw-r--r--src/irc/dcc/dcc-autoget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-autoget.c b/src/irc/dcc/dcc-autoget.c
index 59e01c7b..54b3a0e2 100644
--- a/src/irc/dcc/dcc-autoget.c
+++ b/src/irc/dcc/dcc-autoget.c
@@ -52,7 +52,7 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr)
/* check file size limit, NOTE: it's still possible to send a
bogus file size and then just send what ever sized file.. */
max_size = settings_get_int("dcc_autoget_max_size");
- if (max_size > 0 && max_size*1024 < dcc->size)
+ if (max_size > 0 && (unsigned long) max_size*1024 < dcc->size)
return;
/* ok. but do we want/need to resume? */