summaryrefslogtreecommitdiffstats
path: root/Modules/rotatingtree.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-02-15 03:01:30 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-02-15 03:01:30 (GMT)
commit219c164a472cb9c388aa61f877c0979c3d645cc1 (patch)
treea68980121642de7d00cf53569db547c801b97a83 /Modules/rotatingtree.c
parent9fb181bab3379d7ef55f72f789f37853009e6e1a (diff)
downloadcpython-219c164a472cb9c388aa61f877c0979c3d645cc1.zip
cpython-219c164a472cb9c388aa61f877c0979c3d645cc1.tar.gz
cpython-219c164a472cb9c388aa61f877c0979c3d645cc1.tar.bz2
randombits(): Stop compiler warning about mixing
signed with unsigned types in comparison.
Diffstat (limited to 'Modules/rotatingtree.c')
-rw-r--r--Modules/rotatingtree.c2
1 files changed, 1 insertions, 1 deletions
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 @@ static int
randombits(int bits)
{
int result;
- if (random_stream < (1<<bits)) {
+ if (random_stream < (1U << bits)) {
random_value *= 1082527;
random_stream = random_value;
}