libroot: Suppress signed-unsigned comparison warning.

This commit is contained in:
Augustin Cavalier 2023-04-08 14:50:13 -04:00
parent c3c213810b
commit adc3561bed

View File

@ -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;