Skip to content

Commit

Permalink
tweaking while loop logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nixon124 committed Oct 9, 2024
1 parent 90f9e4b commit c5718bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/emissary/util/search/KeywordScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public ArrayList<Integer> listIndexOf(@Nullable final byte[] patternArg, final i
this.pattern = patternArg;
this.patternLength = patternArg.length;

while (newStart < this.dataLength) {
while (this.lastPosition >= -1) {
final int actualStart = Math.max(newStart, 0);
analyze();
final int position = match(actualStart, stop);
Expand Down

0 comments on commit c5718bb

Please sign in to comment.