Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix overflow check for Number as From<u64> #287

Closed
wants to merge 1 commit into from
Closed

Conversation

torkleyy
Copy link
Contributor

@torkleyy torkleyy commented Nov 23, 2020

Now big u64 integers will correctly be mapped to a f64.

Fixes #285

Now big u64 integers will correctly be mapped to a f64
@torkleyy
Copy link
Contributor Author

So while this is clearly an improvement and fixes the obvious bug, note that there's still an issue when trying to round-trip large u64 integers using Value.

@@ -494,6 +494,8 @@ mod tests {
{
use crate::de::from_str;

dbg!(s);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover stuff

@torkleyy torkleyy closed this Nov 24, 2020
@torkleyy torkleyy deleted the fixu64 branch October 21, 2021 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Large u64 values overflow as negative i64
2 participants