Skip to content

NaN rework to comply with ordinary serialization (still called prefer…#362

Merged
laurencelundblade merged 19 commits intodevfrom
nano
Apr 4, 2026
Merged

NaN rework to comply with ordinary serialization (still called prefer…#362
laurencelundblade merged 19 commits intodevfrom
nano

Conversation

@laurencelundblade
Copy link
Copy Markdown
Owner

@laurencelundblade laurencelundblade commented Jan 25, 2026

  • Error codes for decoding conformance errors are refactored

  • Compliance with draft-cbor-serialization for NaN processing

    • NaN payloads are not allowed in deterministic and preferred serialization
    • There no longer any shortest-length serialization of NaNs with payloads
    • NaN payloads are supported, but only for special use
  • There are now special modes for encoding and decoding NaN payloads

  • Floating point testing is refactored, particularly to make testing of decoding better

  • QCBOREncode_AddDoubleNoPreferred() is deprecated in favor of QCBOREncode_AddDoubleRaw().

@laurencelundblade laurencelundblade merged commit 3f1db79 into dev Apr 4, 2026
72 checks passed
@laurencelundblade laurencelundblade deleted the nano branch April 4, 2026 03:47
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