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

Also fix undefined behaviour when shift equals the number of bits #18580

Merged
merged 1 commit into from
Nov 4, 2014

Conversation

hirschenberger
Copy link
Contributor

As @ben0x539 commented in #18206 for issue #17713

LLVM states: "If op2 is (statically or dynamically) negative or equal
to or larger than the number of bits in op1, the result is undefined."

LLVM states:  "If op2 is (statically or dynamically) negative or equal
to or larger than the number of bits in op1, the result is undefined."
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Nov 4, 2014
@bors bors merged commit 32b903d into rust-lang:master Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants