You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ordering for Dec types does not work properly for large numbers it seems. An example encountered in the ledger can be summarized with the following lines:
let smaller = Dec::from_str("6483947304.195066085701").unwrap();
let larger = Dec::from_str("32418116583.390243854642").unwrap();
assert!(smaller < larger);
The above assertion fails.
The text was updated successfully, but these errors were encountered:
So the Ord implementation for I256 accidentally inherited from the Ord implementation on [u64; 4], not Uint([u64; 4]) which is an issue since the Uint type is little endian.
The ordering for
Dec
types does not work properly for large numbers it seems. An example encountered in the ledger can be summarized with the following lines:The above assertion fails.
The text was updated successfully, but these errors were encountered: