Fix the false-alarm bug when we skip to the end, which should be OK.

Fix the bug b/4540617.

Change-Id: I64a77b8c5d89bcd35f81d196928a671c954e9a28
This commit is contained in:
Shih-wei Liao
2011-06-05 00:51:54 -07:00
parent 9468634987
commit 6e66725e1c

View File

@@ -51,7 +51,7 @@ public class FieldPacker {
public void skip(int i) {
int res = mPos + i;
if ((res < 0) || (res >= mLen)) {
if ((res < 0) || (res > mLen)) {
throw new RSIllegalArgumentException("out of range argument: " + i);
}
mPos = res;