Skip to content

Commit

Permalink
Merge pull request #11 from pcy190/master
Browse files Browse the repository at this point in the history
Fix out of bound exception
  • Loading branch information
UrielCh authored Apr 17, 2021
2 parents 4e6596f + c558138 commit 38768e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void extractString(int beginIndex, int endIndex) {
}

protected int indexOf(char c, int pos) {
for (int i = pos; pos < len; i++)
for (int i = pos; i < len; i++)
if (in[i] == (byte) c)
return i;
return -1;
Expand Down

0 comments on commit 38768e3

Please sign in to comment.