Skip to content

refine detail about what "old behavior" of as is. #1045

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

Merged
merged 1 commit into from
Apr 8, 2015
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions text/0560-integer-overflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ Since it was accepted, the RFC has been updated as follows:
capability for libstd to declare inherent methods on primitive
integral types.
2. `as` was changed to restore the behavior before the RFC (that is,
it truncates, as a C cast would).

it truncates to the target bitwidth and reinterprets the highest
order bit, a.k.a. sign-bit, as necessary, as a C cast would).

# Acknowledgements and further reading

Expand Down