From bb9d210c99ab248e81598d70c39c3968ab9d09eb Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Mon, 23 Mar 2015 07:04:15 -0700 Subject: [PATCH] Fix shift-overflow in very old run-pass test. --- src/test/run-pass/over-constrained-vregs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/run-pass/over-constrained-vregs.rs b/src/test/run-pass/over-constrained-vregs.rs index 1118638fe07..c2b42ac1c81 100644 --- a/src/test/run-pass/over-constrained-vregs.rs +++ b/src/test/run-pass/over-constrained-vregs.rs @@ -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::() { 0_usize << b; b <<= 1_usize; println!("{}", b);