(no title)
whytevuhuni | 1 month ago
i32 -> u32 -> u64
i32 -> i64 -> u64
This matters with negative numbers, where the first one pads with 32 bits of 0, the second one pads it with 32 bits of 1. Sometimes (as it once happened to me), you wanted the wrong one.
lynndotpy|1 month ago
I'm not saying this is worth adding such a thing to Rust just for this use case, but it would be very nice not to write intos for every number