website icon indicating copy to clipboard operation
website copied to clipboard

Try! functionality odd behaviour

Open pierre-vigier opened this issue 7 years ago • 0 comments

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.

pierre-vigier avatar Aug 31 '16 03:08 pierre-vigier