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

Explicitly Convert Float32 to Float64 Before Call #8838

Merged
merged 1 commit into from
Feb 23, 2020

Conversation

toddsundsted
Copy link
Contributor

@toddsundsted toddsundsted commented Feb 22, 2020

Since we're already on the slow path, explicitly convert the Float32 values to a Float64 value before making the snprintf call. Includes a test that demonstrates the fix/failure.

This addresses #8837

)

Since we're already on the slow path, explicitly convert the `Float32`
values to a `Float64` value before making the `snprintf` call.

See: crystal-lang#8837
@straight-shoota straight-shoota linked an issue Feb 22, 2020 that may be closed by this pull request
@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:numeric labels Feb 22, 2020
@RX14 RX14 merged commit dce2d53 into crystal-lang:master Feb 23, 2020
@RX14 RX14 added this to the 0.34.0 milestone Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:numeric
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some Float32 Values Incorrectly Printed
4 participants