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

Not able to encode negative values using mp_encode_int() #27

Open
cyanide-burnout opened this issue Mar 5, 2023 · 2 comments
Open

Not able to encode negative values using mp_encode_int() #27

cyanide-burnout opened this issue Mar 5, 2023 · 2 comments
Labels
feature A new functionality
Milestone

Comments

@cyanide-burnout
Copy link

msgpuck/msgpuck.h

Line 1812 in 28a7421

assert(num < 0);

@kyukhin
Copy link

kyukhin commented Mar 10, 2023

Maybe add mp_[encode|decode]_aint() function which will be able to encode integer of any signedness?

@kyukhin kyukhin added the feature A new functionality label Mar 10, 2023
@kyukhin kyukhin added this to the wishlist milestone Mar 10, 2023
@alyapunov
Copy link

We discusses offline, but after that I explored msgpack spec again and found nothing about rule that positive number should be coded as MP_UINT family.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

No branches or pull requests

3 participants