diff options
author | 2013-10-16 00:49:35 -0700 | |
---|---|---|
committer | 2013-10-16 00:49:35 -0700 | |
commit | 4232d440a351ffa8c712639f56c74c4d607ef079 (patch) | |
tree | fa31dd8475897b72a8ff9df8c590328b0daa4558 /java/src | |
parent | 0fd378c748b684f35afca1c402cb0a26f39ba9a8 (diff) | |
parent | 008d84ffa5ee996a8a7ffa44ee29e54169247ffb (diff) | |
download | latinime-4232d440a351ffa8c712639f56c74c4d607ef079.tar.gz latinime-4232d440a351ffa8c712639f56c74c4d607ef079.tar.xz latinime-4232d440a351ffa8c712639f56c74c4d607ef079.zip |
am 008d84ff: Merge "Fix readAndFollowForwardLink."
* commit '008d84ffa5ee996a8a7ffa44ee29e54169247ffb':
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; |