projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fb181b
)
randombits(): Stop compiler warning about mixing
author
Tim Peters
<tim.peters@gmail.com>
Wed, 15 Feb 2006 03:01:30 +0000
(
03:01
+0000)
committer
Tim Peters
<tim.peters@gmail.com>
Wed, 15 Feb 2006 03:01:30 +0000
(
03:01
+0000)
signed with unsigned types in comparison.
Modules/rotatingtree.c
patch
|
blob
|
history
diff --git
a/Modules/rotatingtree.c
b/Modules/rotatingtree.c
index 952725b35a9f39f6cf884e8e8ac0c31fdfe78141..39c6dd53ede34427b2fc0ebc9139755f17a5993d 100644
(file)
--- 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 < (1
U <<
bits)) {
random_value *= 1082527;
random_stream = random_value;
}