smp.h: make sign conversion explicit

When comparing singed with unsigned the signed value is casted
to unsigned. Make this explicit as it might lead to compilation
warnings otherwise.

Obtained from:		Stormshield
This commit is contained in:
sebastien.bini 2021-12-14 11:54:12 +01:00 committed by Wojciech Macek
parent 4cc76d90ea
commit d28d74de87

View File

@ -213,7 +213,7 @@ cpu_next(int i)
for (;;) {
i++;
if (i > mp_maxid)
if ((u_int)i > mp_maxid)
i = 0;
if (!CPU_ABSENT(i))
return (i);