Skip to content

Commit

Permalink
Merge pull request #51 from Davidson-Souza/fix/coerce-u64
Browse files Browse the repository at this point in the history
parent_many: force a constant to u64
  • Loading branch information
Davidson-Souza authored Jun 26, 2024
2 parents 572b634 + 6b09c7d commit 7ab9d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accumulator/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pub fn parent_many(pos: u64, rise: u8, forest_rows: u8) -> Result<u64, String> {
rise, forest_rows
));
}
let mask = ((2 << forest_rows) - 1) as u64;
let mask = ((2_u64 << forest_rows) - 1) as u64;
Ok((pos >> rise | (mask << (forest_rows - (rise - 1)) as u64)) & mask)
}

Expand Down

0 comments on commit 7ab9d5f

Please # to comment.