Skip to content

Commit

Permalink
Fix shift-overflow in very old run-pass test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Mar 23, 2015
1 parent 4dfec6c commit bb9d210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-pass/over-constrained-vregs.rs
Expand Up @@ -11,7 +11,7 @@
// Regression test for issue #152.
pub fn main() {
let mut b: uint = 1_usize;
while b <= 32_usize {
while b < std::mem::size_of::<usize>() {
0_usize << b;
b <<= 1_usize;
println!("{}", b);
Expand Down

0 comments on commit bb9d210

Please sign in to comment.