Fix readAndFollowForwardLink.
Change-Id: Ifda44e6139a4a1bd065468a7f74cd9483b343644
This commit is contained in:
parent
b067be0e5f
commit
522dc0d8ac
1 changed files with 2 additions and 1 deletions
|
@ -318,7 +318,8 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
|
|||
|
||||
@Override
|
||||
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()) {
|
||||
mDictBuffer.position(nextAddress);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue