Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Avoid unsafe transmuting ints to floats #18

Closed
NikVolf opened this issue May 31, 2017 · 1 comment
Closed

Avoid unsafe transmuting ints to floats #18

NikVolf opened this issue May 31, 2017 · 1 comment

Comments

@NikVolf
Copy link
Contributor

NikVolf commented May 31, 2017

This can lead to the hardware trap, see
rust-lang/rust#39271
rust-lang/rust#40470

Until the feature float_bits_conv reaches stable, we should use the same logic while converting instead of just transmuting

@NikVolf NikVolf changed the title Avoid unsafe transmuting ints to float Avoid unsafe transmuting ints to floats May 31, 2017
@NikVolf
Copy link
Contributor Author

NikVolf commented May 31, 2017

#19

@NikVolf NikVolf closed this as completed May 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant