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
Judging by the behaviour of Rust in this playground, these casts are treated the same as int-to-int casts, where the pointer is considered equivalent to usize. Casting i32 to usize will sign extend, casting usize to i128 will zero extend.
The text was updated successfully, but these errors were encountered:
Judging by the behaviour of Rust in this playground, these casts are treated the same as int-to-int casts, where the pointer is considered equivalent to
usize
. Castingi32
tousize
will sign extend, castingusize
toi128
will zero extend.The text was updated successfully, but these errors were encountered: