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

Make cbor_encode_half respect NaN data bits #215

Open
PJK opened this issue Mar 19, 2022 · 0 comments
Open

Make cbor_encode_half respect NaN data bits #215

PJK opened this issue Mar 19, 2022 · 0 comments
Assignees

Comments

@PJK
Copy link
Owner

PJK commented Mar 19, 2022

Currently cbor_encode_half encodes all NaN as 0x007e00, losing the up to 10 data bits in the significant that could preserved.

I believe this is a bug in the original implementation since the standard only suggests that canonical formats might do that (section 3.9), but doesn't require it.

@PJK PJK self-assigned this Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant