Hacker News new | ask | show | jobs
by zellyn 2353 days ago
Hmmm. I was assuming this was just changing interpretations of the same underlying 8 bits. No?

Edit: yeah, “Casting between two integers of the same size (e.g. i32 -> u32) is a no-op” (https://doc.rust-lang.org/reference/expressions/operator-exp...)

1 comments

Yup, fair enough.