-
Notifications
You must be signed in to change notification settings - Fork 1
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
Problem with big integers #1
Comments
Hello joaopedro, |
Hello, I've tested your new code changes and I'm getting different crashes now. On decoding I still get an empty array due to the big integer since its the first member of the array. On encoding I'm getting a crashes on an optional. My encoding test case:
My decoding test case
Thank you |
Hello, |
Hey, Is it possible to create a release with this fix~ |
Hello, I'm implementing encode/decode and noticed a problem with both of them when using big numbers. I'm using the following set of data.
which encoded using the playground results in 9f1b00000164a8e830608b1905340069302e332e302d64657669302e332e302d64657665342e302e326f38363631393130333136343936343373383933353130313831313534323038323534376b4d393546415230324130387641584e5f322e33325f333333375f313530313038303103008719057608f6f6f6f6f6831905600701ff
My problem is that the first value 1531842146400 since it's a bit integer can't be encoded (crashes) and when decoding it returns an empty array not showing any values. But if I use a smaller number everything works fine. What can I do to work around this situation?
Thanks
The text was updated successfully, but these errors were encountered: