diff options
author | 2013-10-16 07:48:30 +0000 | |
---|---|---|
committer | 2013-10-16 07:48:30 +0000 | |
commit | 008d84ffa5ee996a8a7ffa44ee29e54169247ffb (patch) | |
tree | 0c6b2b4443e55b60654c7bb532277c57b4574a68 /java/src | |
parent | 6b7037fa680694b6fc787ec5bbcdb0aaa5fcad13 (diff) | |
parent | 522dc0d8ac0632cbb9cfed1df0b6f9f2be48f699 (diff) | |
download | latinime-008d84ffa5ee996a8a7ffa44ee29e54169247ffb.tar.gz latinime-008d84ffa5ee996a8a7ffa44ee29e54169247ffb.tar.xz latinime-008d84ffa5ee996a8a7ffa44ee29e54169247ffb.zip |
Merge "Fix readAndFollowForwardLink."
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java index 734223ec2..cc6a54569 100644 --- a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java +++ b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java @@ -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; |