diff options
author | 2012-04-06 18:54:20 +0900 | |
---|---|---|
committer | 2012-04-06 18:54:20 +0900 | |
commit | aa8df599146e9599b872398c067a2ee27079b659 (patch) | |
tree | 530dfa9ed614c28a4b1c75ec10b2718f2b0a1818 | |
parent | cd274b146961c95abf1436caa8ec482650432b6e (diff) | |
download | latinime-aa8df599146e9599b872398c067a2ee27079b659.tar.gz latinime-aa8df599146e9599b872398c067a2ee27079b659.tar.xz latinime-aa8df599146e9599b872398c067a2ee27079b659.zip |
Enable using the flags read from the binary file.
Change-Id: Ib420c3e174ccc1a80c4b6fd066de3b7a2b6fb290
-rw-r--r-- | native/jni/src/unigram_dictionary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/jni/src/unigram_dictionary.cpp b/native/jni/src/unigram_dictionary.cpp index e9667ea7b..3c1cb9950 100644 --- a/native/jni/src/unigram_dictionary.cpp +++ b/native/jni/src/unigram_dictionary.cpp @@ -171,7 +171,7 @@ int UnigramDictionary::getSuggestions(ProximityInfo *proximityInfo, queuePool->clearAll(); Correction* masterCorrection = correction; - if (BinaryFormat::REQUIRES_GERMAN_UMLAUT_PROCESSING & flags) + if (BinaryFormat::REQUIRES_GERMAN_UMLAUT_PROCESSING & FLAGS) { // Incrementally tune the word and try all possibilities int codesBuffer[getCodesBufferSize(codes, codesSize)]; int xCoordinatesBuffer[codesSize]; @@ -181,7 +181,7 @@ int UnigramDictionary::getSuggestions(ProximityInfo *proximityInfo, codesSize, flags, codes, codesSize, 0, codesBuffer, masterCorrection, queuePool, GERMAN_UMLAUT_DIGRAPHS, sizeof(GERMAN_UMLAUT_DIGRAPHS) / sizeof(GERMAN_UMLAUT_DIGRAPHS[0])); - } else if (BinaryFormat::REQUIRES_FRENCH_LIGATURES_PROCESSING & flags) { + } else if (BinaryFormat::REQUIRES_FRENCH_LIGATURES_PROCESSING & FLAGS) { int codesBuffer[getCodesBufferSize(codes, codesSize)]; int xCoordinatesBuffer[codesSize]; int yCoordinatesBuffer[codesSize]; |