Skip to content
Permalink
Browse files

fixed isEOF error

  • Loading branch information...
wenshao committed Sep 3, 2019
1 parent cda8773 commit 80b7b1e6d57a722f7cca549540394c3072ad8ecb
@@ -972,11 +972,6 @@ public final void scanString() {
case 'x':
char x1 = ch = next();
char x2 = ch = next();

if (!isHexChar(x1) || !isHexChar(x2)) {
throw new JSONException("invalid escape character \\x" + x1 + x2);
}

int x_val = digits[x1] * 16 + digits[x2];
char x_char = (char) x_val;
putChar(x_char);
@@ -791,7 +791,7 @@ static boolean checkDate(char y0, char y1, char y2, char y3, char M0, char M1, i

@Override
public boolean isEOF() {
return bp == len || ch == EOI && bp + 1 == len;
return bp == len || (ch == EOI && bp + 1 >= len);
}

public int scanFieldInt(char[] fieldName) {

This file was deleted.

0 comments on commit 80b7b1e

Please sign in to comment.
You can’t perform that action at this time.