libcbor icon indicating copy to clipboard operation
libcbor copied to clipboard

Make cbor_encode_half respect NaN data bits

Open PJK opened this issue 3 years ago • 0 comments

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 avatar Mar 19 '22 17:03 PJK