randombits(): Stop compiler warning about mixing
signed with unsigned types in comparison.
This commit is contained in:
parent
9fb181bab3
commit
219c164a47
|
@ -15,7 +15,7 @@ static int
|
|||
randombits(int bits)
|
||||
{
|
||||
int result;
|
||||
if (random_stream < (1<<bits)) {
|
||||
if (random_stream < (1U << bits)) {
|
||||
random_value *= 1082527;
|
||||
random_stream = random_value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue