Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tendermint: ensure ValidatorIndex is ≤ i32::MAX
During conversion from usize to ValidatorIndex first convert the value to `i32` to make sure that the value is ≤ i32::MAX. Without that intermediate conversion, `u32::MAX as usize` is successfully converted into the index.
- Loading branch information