am 008d84ff: Merge "Fix readAndFollowForwardLink."
* commit '008d84ffa5ee996a8a7ffa44ee29e54169247ffb': Fix readAndFollowForwardLink.main
commit
4232d440a3
|
@ -318,7 +318,8 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean readAndFollowForwardLink() {
|
public boolean readAndFollowForwardLink() {
|
||||||
final int nextAddress = mDictBuffer.readUnsignedInt24();
|
final int forwardLinkPos = mDictBuffer.position();
|
||||||
|
final int nextAddress = forwardLinkPos + BinaryDictDecoderUtils.readSInt24(mDictBuffer);
|
||||||
if (nextAddress >= 0 && nextAddress < mDictBuffer.limit()) {
|
if (nextAddress >= 0 && nextAddress < mDictBuffer.limit()) {
|
||||||
mDictBuffer.position(nextAddress);
|
mDictBuffer.position(nextAddress);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue