aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
diff options
context:
space:
mode:
authorBill Yi <byi@google.com>2014-04-29 11:34:28 -0700
committerBill Yi <byi@google.com>2014-04-29 11:34:28 -0700
commit2debf168920bb852b1583446fc336743f98b3c04 (patch)
tree7324a335fb65fcc585695d7d061b04aeba64be10 /java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
parent5c36065b74852857b3cc520d7be5df9413937cd9 (diff)
parent5df8b42709662b0e599019e4fd17c4e153ff6b47 (diff)
downloadlatinime-2debf168920bb852b1583446fc336743f98b3c04.tar.gz
latinime-2debf168920bb852b1583446fc336743f98b3c04.tar.xz
latinime-2debf168920bb852b1583446fc336743f98b3c04.zip
Merge commit '5df8b42709662b0e599019e4fd17c4e153ff6b47' into HEAD
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
index 0f7d2f6c9..d5516ef46 100644
--- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
+++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java
@@ -460,8 +460,10 @@ public final class BinaryDictIOUtils {
destination.write((byte)infos.length);
break;
case 2:
- destination.write((byte)(infos.length >> 8));
- destination.write((byte)(infos.length & 0xFF));
+ final int encodedPtNodeCount =
+ infos.length | FormatSpec.LARGE_PTNODE_ARRAY_SIZE_FIELD_SIZE_FLAG;
+ destination.write((byte)(encodedPtNodeCount >> 8));
+ destination.write((byte)(encodedPtNodeCount & 0xFF));
break;
default:
throw new RuntimeException("Invalid node count size.");