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

Msgpack doesn't comply DecoderOptions.SignedInteger #46

Closed
methane opened this issue Jan 19, 2015 · 1 comment
Closed

Msgpack doesn't comply DecoderOptions.SignedInteger #46

methane opened this issue Jan 19, 2015 · 1 comment

Comments

@methane
Copy link

methane commented Jan 19, 2015

I use Go 1.4.1.

MsgpackDecoder produce int64 for unsigned integer while I set SignedInteger = false.

https://gist.github.com/methane/cfdcce8257a6406dd2ad
Output of this code is 42, int64.

@ugorji
Copy link
Owner

ugorji commented Jan 19, 2015

0x2a is in the positive fixint type, meaning it is a signed number via spec. You need to use a number > 0x7f to make it unspecified and then the configuration can take effect. See https://github.com/msgpack/msgpack/blob/master/spec.md

@ugorji ugorji closed this as completed Jan 19, 2015
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

No branches or pull requests

2 participants