diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-23 07:04:15 -0700 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-23 07:04:15 -0700 |
| commit | bb9d210c99ab248e81598d70c39c3968ab9d09eb (patch) | |
| tree | b258348fc6e54343fe7975cdcd8f613b967831eb | |
| parent | 4dfec6cab51619b98eacc27d4521d2e7162f2d50 (diff) | |
| download | rust-bb9d210c99ab248e81598d70c39c3968ab9d09eb.tar.gz rust-bb9d210c99ab248e81598d70c39c3968ab9d09eb.zip | |
Fix shift-overflow in very old run-pass test.
| -rw-r--r-- | src/test/run-pass/over-constrained-vregs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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::<usize>() { 0_usize << b; b <<= 1_usize; println!("{}", b); |
