diff options
author | 2013-05-15 11:25:57 -0700 | |
---|---|---|
committer | 2013-05-15 11:25:57 -0700 | |
commit | 6cf492e4a4a6e729f556fd8d38646c8a5ab7e4ba (patch) | |
tree | d1c51e1ec4b00df7c95c0f43ed051a61adab72c2 | |
parent | 03fe0cf4dd03028b84ef05f9a9519a51fb9977e6 (diff) | |
parent | 941b288c0571eb591ce794a03ff399b6caa69370 (diff) | |
download | latinime-6cf492e4a4a6e729f556fd8d38646c8a5ab7e4ba.tar.gz latinime-6cf492e4a4a6e729f556fd8d38646c8a5ab7e4ba.tar.xz latinime-6cf492e4a4a6e729f556fd8d38646c8a5ab7e4ba.zip |
am 941b288c: am df2eae6e: Fix exact match profanity
* commit '941b288c0571eb591ce794a03ff399b6caa69370':
Fix exact match profanity
-rw-r--r-- | native/jni/src/suggest/core/suggest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/jni/src/suggest/core/suggest.cpp b/native/jni/src/suggest/core/suggest.cpp index 3221dee9c..0ff7454b6 100644 --- a/native/jni/src/suggest/core/suggest.cpp +++ b/native/jni/src/suggest/core/suggest.cpp @@ -164,8 +164,8 @@ int Suggest::outputSuggestions(DicTraverseSession *traverseSession, int *frequen const bool isPossiblyOffensiveWord = terminalDicNode->getProbability() <= 0; const bool isExactMatch = terminalDicNode->isExactMatch(); const int outputTypeFlags = - isPossiblyOffensiveWord ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0 - | isExactMatch ? Dictionary::KIND_FLAG_EXACT_MATCH : 0; + (isPossiblyOffensiveWord ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0) + | (isExactMatch ? Dictionary::KIND_FLAG_EXACT_MATCH : 0); // Entries that are blacklisted or do not represent a word should not be output. const bool isValidWord = !terminalAttributes.isBlacklistedOrNotAWord(); |