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

Encoding UInt = 1 encodes to 9 bytes #98

Open
fl034 opened this issue Jan 24, 2024 · 0 comments · May be fixed by #99
Open

Encoding UInt = 1 encodes to 9 bytes #98

fl034 opened this issue Jan 24, 2024 · 0 comments · May be fixed by #99

Comments

@fl034
Copy link

fl034 commented Jan 24, 2024

In 0.4.4 this test succeeded. In 0.4.6 this encodes to a 9 byte array...
With Int instead of UInt, the test also succeeds.

Is this a bug or something that I'm missing in the CBOR standard?

image
@fl034 fl034 changed the title Encoding let x: UInt = 1 encodes to 9 bytes Encoding UInt = 1 encodes to 9 bytes Jan 24, 2024
@fl034 fl034 linked a pull request Jan 24, 2024 that will close this issue
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 a pull request may close this issue.

1 participant