aboutsummaryrefslogtreecommitdiffstats
path: root/native/src
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-03-07 18:15:39 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-07 18:15:39 -0800
commit463418385c2bca0ec13a3f720e0dbdbe769004bd (patch)
tree0d7fa649c664ce2209809ffe03fa384a4ffabc62 /native/src
parentd7e2bc335d354a4bb5ae78594aa38cb60df0597b (diff)
parent1df8c82d71ec2a221f07a8842fd19bf43f772200 (diff)
downloadlatinime-463418385c2bca0ec13a3f720e0dbdbe769004bd.tar.gz
latinime-463418385c2bca0ec13a3f720e0dbdbe769004bd.tar.xz
latinime-463418385c2bca0ec13a3f720e0dbdbe769004bd.zip
Merge "Fix a bug that a word with only one missing word is not promoted" into honeycomb-mr1
Diffstat (limited to 'native/src')
-rw-r--r--native/src/unigram_dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp
index c2cd76084..30fbaeae1 100644
--- a/native/src/unigram_dictionary.cpp
+++ b/native/src/unigram_dictionary.cpp
@@ -521,7 +521,7 @@ inline int UnigramDictionary::calculateFinalFreq(const int inputIndex, const int
finalFreq = capped255MultForFullMatchAccentsOrCapitalizationDifference(finalFreq);
}
}
- if (sameLength && skipPos < 0) finalFreq *= FULL_WORD_MULTIPLIER;
+ if (sameLength) finalFreq *= FULL_WORD_MULTIPLIER;
return finalFreq;
}