Closed Hywan closed 2 years ago
Hello,
This PR adds the Integer::to_u32 and Fixnum::to_u32 methods. I'm not sure what to do when we try to convert -1 (Ruby) to u32 (Rust). For the moment, it overflows to std::u32::MAX. What's the best practise in rutie?
Integer::to_u32
Fixnum::to_u32
-1
u32
std::u32::MAX
rutie
This is now in master and released in v0.8.3
Hello,
This PR adds the
Integer::to_u32
andFixnum::to_u32
methods. I'm not sure what to do when we try to convert-1
(Ruby) tou32
(Rust). For the moment, it overflows tostd::u32::MAX
. What's the best practise inrutie
?