From 7a173ca85d1db32bc47579af95a09c959520d314 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 2 Dec 2024 21:12:15 +0100 Subject: Changed an if statement --- FICS/matchproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'FICS') 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; } -- cgit v1.2.3