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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user