Skip to content

Commit

Permalink
bugfix: generalized indices for Bitlist
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Mar 30, 2024
1 parent 96c21e2 commit 62bc724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ssz-rs/src/bitlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ impl<const N: usize> GeneralizedIndexable for Bitlist<N> {
}
let chunk_position = i / 256;
let child = parent *
2 *
get_power_of_two_ceil(<Self as GeneralizedIndexable>::chunk_count()) +
chunk_position;
// NOTE: use `bool` as effective type of element
Expand Down

0 comments on commit 62bc724

Please sign in to comment.