Merge "Fix the false-alarm bug when we skip to the end, which should be OK."
This commit is contained in:
committed by
Android (Google) Code Review
commit
40f4efe712
@@ -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