Skip to content

Commit

Permalink
Use %=
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 15, 2024
1 parent 7c9793a commit bd83aa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public boolean forEachIndex(final IntPredicate consumer) {
int pos = 0;
for (int i = 0; i < shape.getNumberOfHashFunctions(); i++) {
final int result = values[pos++] % shape.getNumberOfBits();
pos = pos % values.length;
pos %= values.length;
if (!consumer.test(result)) {
return false;
}
Expand Down

0 comments on commit bd83aa0

Please sign in to comment.