aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/_uint.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/_uint.rs b/src/lib/_uint.rs
index f3a6f935..2c2629c9 100644
--- a/src/lib/_uint.rs
+++ b/src/lib/_uint.rs
@@ -28,7 +28,9 @@ fn next_power_of_two(uint n) -> uint {
let uint shift = 1u;
while (shift <= halfbits) {
tmp |= tmp >> shift;
- shift <<= 1u;
+ // FIXME (issue #152): This would be just a tad cuter if it were
+ // shift <<= 1u
+ shift = shift << 1u;
}
ret tmp + 1u;
}