aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2013-10-08 00:14:04 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-08 00:14:04 -0700
commitd168bd54d664e4fdc819c5e0d1520fdbab729514 (patch)
tree73aaf6c45a049c2cb197823962728fe8ca883ae6
parent620017028cd1ef7159c16343720e7062b09dc3ba (diff)
parent6d91e4ce741b71589000374de47f50887392b982 (diff)
downloadlatinime-d168bd54d664e4fdc819c5e0d1520fdbab729514.tar.gz
latinime-d168bd54d664e4fdc819c5e0d1520fdbab729514.tar.xz
latinime-d168bd54d664e4fdc819c5e0d1520fdbab729514.zip
am 6d91e4ce: Fix offdevice test build.
* commit '6d91e4ce741b71589000374de47f50887392b982': Fix offdevice test build.
-rw-r--r--native/jni/src/suggest/policyimpl/dictionary/dynamic_patricia_trie_policy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/jni/src/suggest/policyimpl/dictionary/dynamic_patricia_trie_policy.cpp b/native/jni/src/suggest/policyimpl/dictionary/dynamic_patricia_trie_policy.cpp
index 3d07c9d6c..a8ea69f3c 100644
--- a/native/jni/src/suggest/policyimpl/dictionary/dynamic_patricia_trie_policy.cpp
+++ b/native/jni/src/suggest/policyimpl/dictionary/dynamic_patricia_trie_policy.cpp
@@ -360,11 +360,11 @@ void DynamicPatriciaTriePolicy::getProperty(const char *const query, char *const
} else if (strncmp(query, MAX_UNIGRAM_COUNT_QUERY, maxResultLength) == 0) {
snprintf(outResult, maxResultLength, "%d",
mHeaderPolicy.isDecayingDict() ? ForgettingCurveUtils::MAX_UNIGRAM_COUNT :
- DynamicPatriciaTrieWritingHelper::MAX_DICTIONARY_SIZE);
+ static_cast<int>(DynamicPatriciaTrieWritingHelper::MAX_DICTIONARY_SIZE));
} else if (strncmp(query, MAX_BIGRAM_COUNT_QUERY, maxResultLength) == 0) {
snprintf(outResult, maxResultLength, "%d",
mHeaderPolicy.isDecayingDict() ? ForgettingCurveUtils::MAX_BIGRAM_COUNT :
- DynamicPatriciaTrieWritingHelper::MAX_DICTIONARY_SIZE);
+ static_cast<int>(DynamicPatriciaTrieWritingHelper::MAX_DICTIONARY_SIZE));
} else if (strncmp(query, SET_NEEDS_TO_DECAY_FOR_TESTING_QUERY, maxResultLength) == 0) {
mNeedsToDecayForTesting = true;
}