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

Strange bug with LONG #224

Closed
byaka opened this issue Jun 4, 2016 · 1 comment
Closed

Strange bug with LONG #224

byaka opened this issue Jun 4, 2016 · 1 comment

Comments

@byaka
Copy link

byaka commented Jun 4, 2016

Finded some really strange bug
ujson version 1.35

> ujson.dumps({'params': [1, 18446744073709551616L], 'method': ''})
'{"params":[1,],"method":""}'

> ujson.dumps({'params': [1, 18446744073709551616L], 'test': ''})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: long too big to convert

as you can see in first example encoder silently ignore LONG and return incorrect data, but in second example it raise error

This is repost from closed #99

@Jahaja
Copy link
Contributor

Jahaja commented Feb 4, 2017

Strange one indeed. This is fixed in 409c6d4. Thanks!

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