Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Don't give an error for 1.0/0 and 0.0/0 #444

Merged
merged 1 commit into from
May 21, 2020
Merged

Don't give an error for 1.0/0 and 0.0/0 #444

merged 1 commit into from
May 21, 2020

Conversation

jyn514
Copy link
Owner

@jyn514 jyn514 commented May 21, 2020

Closes #442

I also found rust-lang/rust#72411 while working on this, so that was fun.

@jyn514
Copy link
Owner Author

jyn514 commented May 21, 2020

I think a better solution would be to modify store_static to use a known bitpattern for NaN instead of blindly trusting to_bits.

@jyn514
Copy link
Owner Author

jyn514 commented May 21, 2020

Delaying the above ^ until someone complains, since it's not defined by any standard.

@jyn514 jyn514 merged commit a4a2442 into master May 21, 2020
@jyn514 jyn514 deleted the float-div-zero branch May 21, 2020 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.0/0 and 0.0/0 are both defined, but are reported as an error by rcc
1 participant