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

Binary instances for NaN and negative zero are broken #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shimuuar
Copy link
Contributor

@Shimuuar Shimuuar commented Feb 9, 2014

Roundtripping (decode . encode) NaN yields -∞ for both Float and Double and roundtripping negative zero gives oridinary zero.

This pull request only add tests for transfinite floating point values and does nothing to address issue. It's unclear to me whether it's possible to fix this without breaking encoding format in backward incompatible way.

QC doesn't generate such value so they should be listed explicitly
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.

1 participant