Skip to content

Commit bb9d210

Browse files
committed
Fix shift-overflow in very old run-pass test.
1 parent 4dfec6c commit bb9d210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-pass/over-constrained-vregs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Regression test for issue #152.
1212
pub fn main() {
1313
let mut b: uint = 1_usize;
14-
while b <= 32_usize {
14+
while b < std::mem::size_of::<usize>() {
1515
0_usize << b;
1616
b <<= 1_usize;
1717
println!("{}", b);

0 commit comments

Comments
 (0)