-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
u8(255.0) yields Overflow #23
Comments
federicomenaquintero
added a commit
to federicomenaquintero/cast.rs
that referenced
this issue
Mar 5, 2021
It looks like all of {u8, u16, u32}::MAX values as f64 yield Overflow when cast back to their original types.
federicomenaquintero
added a commit
to federicomenaquintero/cast.rs
that referenced
this issue
Mar 5, 2021
It looks like all of {u8, u16, u32}::MAX values as f64 yield Overflow when cast back to their original types.
gnomesysadmins
pushed a commit
to GNOME/librsvg
that referenced
this issue
Mar 5, 2021
Aaaaaaaaand, we found a bug in the cast crate! japaric/cast.rs#23
This conversion error happens on line 299 of lib.rs where the transmutes returns a value 254.99999999999997 for Lines 293 to 304 in cd85b66
|
japaric
added a commit
that referenced
this issue
Sep 4, 2021
japaric
added a commit
that referenced
this issue
Sep 4, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should be
Ok(255)
, of course 馃槂The text was updated successfully, but these errors were encountered: