aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-08-21 11:27:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-21 11:27:20 +0000
commitf9233e0b98469a7e9e9a863d491a33593dba4bff (patch)
tree801b58f29ec006cb5033dd7874ac182f1c8ce0b6 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
parent17cc396972d6ba805ec31f8e4964de0e106f41fb (diff)
parent558e34c7bd8b146695ce1dbda6ed9933ddd19300 (diff)
downloadlatinime-f9233e0b98469a7e9e9a863d491a33593dba4bff.tar.gz
latinime-f9233e0b98469a7e9e9a863d491a33593dba4bff.tar.xz
latinime-f9233e0b98469a7e9e9a863d491a33593dba4bff.zip
Merge "Make readPtNode be called with the address from the beginning of the file."
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
index d50d1ac96..f30be97f3 100644
--- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
+++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java
@@ -512,8 +512,8 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase {
return null;
}
if (fileHeader == null) return null;
- return BinaryDictDecoderUtils.getWordAtAddress(dictDecoder, fileHeader.mHeaderSize,
- address - fileHeader.mHeaderSize, fileHeader.mFormatOptions).mWord;
+ return BinaryDictDecoderUtils.getWordAtPosition(dictDecoder, fileHeader.mHeaderSize,
+ address, fileHeader.mFormatOptions).mWord;
}
private long runGetTerminalPosition(final Ver3DictDecoder dictDecoder, final String word,