Skip to content

Commit 6ecff1c

Browse files
authored
Fix indexOf
1 parent 00955f7 commit 6ecff1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json-smart/src/main/java/net/minidev/json/parser/JSONParserByteArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected void extractStringTrim(int start, int stop) {
7575
}
7676

7777
protected int indexOf(char c, int pos) {
78-
for (int i = pos; pos < len; i++)
78+
for (int i = pos; i < len; i++)
7979
if (in[i] == (byte) c)
8080
return i;
8181
return -1;

0 commit comments

Comments
 (0)