Skip to content

Make cbor_encode_half respect NaN data bits #215

@PJK

Description

@PJK

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions