aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-02-04 19:37:20 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-04 19:37:20 -0800
commit149ac7920544d48265df51aed1da2934092ba0ac (patch)
treeb9559c67f470c10601652a3b9c512779e5872b39 /native/jni/src
parentf34b36b420054f29e68f3bf1c58382d52b3bad60 (diff)
parentc48804863491d35d3505e13eabdf9d35499c7450 (diff)
downloadlatinime-149ac7920544d48265df51aed1da2934092ba0ac.tar.gz
latinime-149ac7920544d48265df51aed1da2934092ba0ac.tar.xz
latinime-149ac7920544d48265df51aed1da2934092ba0ac.zip
am c4880486: Merge "Check isEligibleForAutoCommit when batch input is ended."
* commit 'c48804863491d35d3505e13eabdf9d35499c7450': Check isEligibleForAutoCommit when batch input is ended.
Diffstat (limited to 'native/jni/src')
-rw-r--r--native/jni/src/defines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h
index 1969ebae0..22cc4c02b 100644
--- a/native/jni/src/defines.h
+++ b/native/jni/src/defines.h
@@ -311,7 +311,7 @@ static inline void prof_out(void) {
// A special value to mean the first word confidence makes no sense in this case,
// e.g. this is not a multi-word suggestion.
-#define NOT_A_FIRST_WORD_CONFIDENCE (S_INT_MAX)
+#define NOT_A_FIRST_WORD_CONFIDENCE (S_INT_MIN)
// How high the confidence needs to be for us to auto-commit. Arbitrary.
// This needs to be the same as CONFIDENCE_FOR_AUTO_COMMIT in BinaryDictionary.java
#define CONFIDENCE_FOR_AUTO_COMMIT (1000000)