Skip to content

Commit

Permalink
Fix loop index range in CombineHashFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
pettyjamesm committed Nov 20, 2023
1 parent 0d2dc48 commit 9c269e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void combineAllHashesWithConstant(long[] hashes, int fromIndex, in
{
checkFromToIndex(fromIndex, toIndex, hashes.length);

for (int i = 0; i < toIndex; i++) {
for (int i = fromIndex; i < toIndex; i++) {
hashes[i] = (31 * hashes[i]) + value;
}
}
Expand Down

0 comments on commit 9c269e1

Please sign in to comment.