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 SafeMath#safeDoubleToFloat for values <= 0 #143

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

Spottedleaf
Copy link
Contributor

MIN_VALUE is actually the positive closest-to-zero value that a float can represent. So this function would break on 0 and negative float values.

MIN_VALUE is actually the positive closest-to-zero value that a float can represent. So this function would break on 0 and negative float values.
@vigna vigna merged commit 938d7fa into vigna:master Jun 4, 2020
@vigna
Copy link
Owner

vigna commented Jun 4, 2020

If you can send me your name I'll add a thank to the CHANGES file.

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.

None yet

2 participants