You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
casting between two integers of the same size (e.g. i32 -> u32) is a no-op
A signed integer can contain values an unsigned integer cannot, so even if this is true at the instruction level it seems misleading. Should maybe mention if Rust assumes 2s-complement representation?
The text was updated successfully, but these errors were encountered:
From here: https://doc.rust-lang.org/nomicon/casts.html
A signed integer can contain values an unsigned integer cannot, so even if this is true at the instruction level it seems misleading. Should maybe mention if Rust assumes 2s-complement representation?
The text was updated successfully, but these errors were encountered: