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:
parent
4cc76d90ea
commit
d28d74de87
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user