Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overflowing-checking for rhs of shift operators #23536

Merged
merged 5 commits into from
Mar 24, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix shift-overflow in very old run-pass test.
  • Loading branch information
pnkfelix committed Mar 23, 2015
commit bb9d210c99ab248e81598d70c39c3968ab9d09eb
2 changes: 1 addition & 1 deletion src/test/run-pass/over-constrained-vregs.rs
Original file line number Diff line number Diff line change
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