-
Notifications
You must be signed in to change notification settings - Fork 10
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
Parser is converting some numeric values incorrectly #17
Comments
anilmaurya
pushed a commit
that referenced
this issue
Aug 25, 2020
Hi @justjoehere Can you confirm this issue on |
Still occurs in 0.5.0. |
Hi @justjoehere I added test case to reproduce this issue, 96ff5c5 But test cases is passing. |
the test is actually failing on platforms where sizeof(long) != 32 like Windows.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Executing the following code
FastJsonparser.parse("[{ \"duration\": 7386425359 }]")
Results in
{ :duration => -1203509233 }
This parsing is resulting in a change in values
7386425359 is being converted to -1203509233
It's like there's a weird conversion from an unsigned to a signed 33 bit conversion taking place. I used this tool to make that guess https://onlinetoolz.net/unsigned-signed#base=10&value=7386425359&bits=33
The text was updated successfully, but these errors were encountered: