aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-05-29 22:56:55 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-29 22:56:55 -0700
commit046f7fc7022f169014e22cf347eb027481eeff97 (patch)
tree42eb33039c0580f036a92ecea349c851711994df /native/jni/src
parent2eb92f7cc5b417e99c32c3498c76723a4371baee (diff)
parent987aa1536b762070138ba40485a10e4caac01c48 (diff)
downloadlatinime-046f7fc7022f169014e22cf347eb027481eeff97.tar.gz
latinime-046f7fc7022f169014e22cf347eb027481eeff97.tar.xz
latinime-046f7fc7022f169014e22cf347eb027481eeff97.zip
am 987aa153: am 62cd919d: Remove a compiler warning.
* commit '987aa1536b762070138ba40485a10e4caac01c48': Remove a compiler warning.
Diffstat (limited to 'native/jni/src')
-rw-r--r--native/jni/src/bigram_dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/jni/src/bigram_dictionary.cpp b/native/jni/src/bigram_dictionary.cpp
index eb4bf8d1a..9ef024dc4 100644
--- a/native/jni/src/bigram_dictionary.cpp
+++ b/native/jni/src/bigram_dictionary.cpp
@@ -117,7 +117,7 @@ int BigramDictionary::getBigrams(const int32_t *prevWord, int prevWordLength, in
do {
bigramFlags = BinaryFormat::getFlagsAndForwardPointer(root, &pos);
uint16_t bigramBuffer[MAX_WORD_LENGTH];
- int unigramFreq;
+ int unigramFreq = 0;
const int bigramPos = BinaryFormat::getAttributeAddressAndForwardPointer(root, bigramFlags,
&pos);
const int length = BinaryFormat::getWordAtAddress(root, bigramPos, MAX_WORD_LENGTH,