From adc3561bede02078607accbbf6b5aa49637d8f43 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 8 Apr 2023 14:50:13 -0400 Subject: [PATCH] libroot: Suppress signed-unsigned comparison warning. --- src/system/libroot/posix/stdlib/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/libroot/posix/stdlib/random.c b/src/system/libroot/posix/stdlib/random.c index db8eccc091..aba25810c8 100644 --- a/src/system/libroot/posix/stdlib/random.c +++ b/src/system/libroot/posix/stdlib/random.c @@ -382,7 +382,7 @@ setstate(char *arg_state) uint32_t rear = new_state[0] / MAX_TYPES; char *ostate = (char *)(&state[-1]); - if (type != TYPE_0 && rear >= degrees[type]) + if (type != TYPE_0 && rear >= (uint32_t)degrees[type]) return (NULL); if (rand_type == TYPE_0) state[-1] = rand_type;