Fix shift-overflow in very old run-pass test.
This commit is contained in:
parent
4dfec6cab5
commit
bb9d210c99
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user