aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2013-10-09 21:26:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 21:26:29 -0700
commit96f54480cb5b3db6aaaafedaa9098712a01a9fbe (patch)
tree94c7fda5f4afa0828795c45143b4d1f85b87af67
parent86e0e06c36777e84fe52cc8df26bdd329a1112d4 (diff)
parentba13ae79905fa357346618398b273766b2db6ccd (diff)
downloadlatinime-96f54480cb5b3db6aaaafedaa9098712a01a9fbe.tar.gz
latinime-96f54480cb5b3db6aaaafedaa9098712a01a9fbe.tar.xz
latinime-96f54480cb5b3db6aaaafedaa9098712a01a9fbe.zip
am ba13ae79: am d168bd54: am 6d91e4ce: Fix offdevice test build.
* commit 'ba13ae79905fa357346618398b273766b2db6ccd': 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;
}