-
Notifications
You must be signed in to change notification settings - Fork 488
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
Add details about integer overflow #44
Conversation
I asserted that arithmetic overflow indicates programmer error, which is stronger than the claim in RFC 560. However, I do point users at the I remained confused after reading the RFC about Rust's overflow semantics. It seemed to indicate two's complement, wrapping overflow is the default if the compiler doesn't insert dynamic checks, but it also indicated an implementation could insert static or dynamic checks at any time to |
@steveklabnik ping |
Hey @mrhota sorry about this.
My understanding is that it's like this:
So, it seems like this PR is correct, though maybe not complete, exactly. Thoughts? |
@steveklabnik that's very helpful. I'll clarify what I have written. |
@mrhota ping! |
@steveklabnik OK, give these changes a shot. I hope it clarifies things |
Looks great, thank you! |
CC #9