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

This commit is contained in:
Shih-wei Liao
2011-06-05 00:58:40 -07:00
committed by Android (Google) Code Review

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;