aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/matchproc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/matchproc.c b/FICS/matchproc.c
index 382096b..c66c688 100644
--- a/FICS/matchproc.c
+++ b/FICS/matchproc.c
@@ -1209,7 +1209,8 @@ com_accept(int p, param_list param)
}
}
- if (acceptNum < 0 || acceptNum >= ARRAY_SIZE(parray[0].p_from_list)) {
+ if (acceptNum < 0 ||
+ acceptNum >= (int)ARRAY_SIZE(parray[0].p_from_list)) {
pprintf(p, "Accept number out-of-bounds!\n");
return COM_FAILED;
}