randombits(): Stop compiler warning about mixing

signed with unsigned types in comparison.
This commit is contained in:
Tim Peters 2006-02-15 03:01:30 +00:00
parent 9fb181bab3
commit 219c164a47
1 changed files with 1 additions and 1 deletions

View File

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