Closed vmx closed 2 years ago
When decoding the minimum value of i64 (-9223372036854775808), there is an overflow error. With this fix it can be deserialized correctly.
The reason for the failure was the order of the operations. Prior to this change the decoding had these steps:
u64
i64
i64::MAX
The new steps are:
Thank you!
When decoding the minimum value of i64 (-9223372036854775808), there is an overflow error. With this fix it can be deserialized correctly.
The reason for the failure was the order of the operations. Prior to this change the decoding had these steps:
u64
=> 9223372036854775807i64
=> error asi64::MAX
is 9223372036854775807.The new steps are:
u64
=> 9223372036854775807i64
=> 9223372036854775807