8000 Preserve negative zero during numeric encoding by Aschenbath · Pull Request #161 · kawanet/msgpack-lite · GitHub
[go: up one dir, main page]

Skip to content

Preserve negative zero during numeric encoding - #161

Open
Aschenbath wants to merge 1 commit into
kawanet:mainfrom
Aschenbath:fix/oss30-20261124-9130-msgpack-negative-zero
Open

Aschenbath wants to merge 1 commit into
kawanet:mainfrom
Aschenbath:fix/oss30-20261124-9130-msgpack-negative-zero

Conversation

@Aschenbath
Copy link
Copy Markdown
Contributor

Encode negative zero as float64 so round trips retain its sign. Ordinary zero still uses the one-byte integer encoding. Regressions cover scalar and nested values with both Buffer and Uint8Array output.

Validation: the new regression fails on the original implementation; all 204 source tests pass on Node 24 / Windows. JSHint and browser/CommonJS bundle smoke checks also pass.

This branch has not been deployed

No deployments
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

0