Skip to content

Conversation

steveklabnik
Copy link
Contributor

I assume since both shifts say the same thing, I should fix both of them, but then I realized I don't strictly know about left shift.

Fixes #23421

r? @pnkfelix

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. You may actually want to leave these two bullet points in: We are continuing to use well-defined fallbacks when one's code is compiled without the overflow checking turned on, as discussed in the Arithmetic Overflow RFC; its the part where we say what the "defined result" is for each operation of interest.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

roger. Since that's conditional, I wasn't sure.

@pnkfelix
Copy link
Contributor

@bors r+ f2e0810 rollup

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 24, 2015
I assume since both shifts say the same thing, I should fix both of them, but then I realized I don't strictly know about left shift.

Fixes rust-lang#23421

r? @pnkfelix
@bors bors merged commit f2e0810 into rust-lang:master Mar 25, 2015
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.

Inaccuracies in the reference about bitshifts and overflows
3 participants