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

Try! functionality odd behaviour #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pierre-vigier
Copy link

The online Try! functionality is packing -128, -32768, -2147483648 differently than other implementation.

-128 with the online tool is encoded as "d1 ff 80" where as other implementation encode -128 to "d0 80" (i checked implementation in python, ruby, javascript from the implementation list plus the perl implementation)
When unpacking, both "d1 ff 80" and "d0 80" are decoded as -128, however, as "d0 80" is one byte less, i guess it should be the correct implementation.
From the specification however, i was not able to confirm which one is the correct one.

-128, -32768, -2147483648 are encoded differently
than other engine, and not consistenly with -32
gfx added a commit to msgpack/msgpack-javascript that referenced this pull request Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant