commit | 219c164a472cb9c388aa61f877c0979c3d645cc1 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Wed Feb 15 03:01:30 2006 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Wed Feb 15 03:01:30 2006 +0000 |
tree | a68980121642de7d00cf53569db547c801b97a83 | |
parent | 9fb181bab3379d7ef55f72f789f37853009e6e1a [diff] [blame] |
randombits(): Stop compiler warning about mixing signed with unsigned types in comparison.
diff --git a/Modules/rotatingtree.c b/Modules/rotatingtree.c index 952725b..39c6dd5 100644 --- a/Modules/rotatingtree.c +++ b/Modules/rotatingtree.c
@@ -15,7 +15,7 @@ randombits(int bits) { int result; - if (random_stream < (1<<bits)) { + if (random_stream < (1U << bits)) { random_value *= 1082527; random_stream = random_value; }