Commit 79d04d6f authored by Tim Peters's avatar Tim Peters

randombits(): Stop compiler warning about mixing

signed with unsigned types in comparison.
parent c55c2380
...@@ -15,7 +15,7 @@ static int ...@@ -15,7 +15,7 @@ static int
randombits(int bits) randombits(int bits)
{ {
int result; int result;
if (random_stream < (1<<bits)) { if (random_stream < (1U << bits)) {
random_value *= 1082527; random_value *= 1082527;
random_stream = random_value; random_stream = random_value;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment