summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-01-17 11:16:10 +0800
committerPeng Wu <alexepico@gmail.com>2012-01-17 11:16:10 +0800
commit40f435b0c74f061134f37e4baf48520d1dbb11e0 (patch)
treef317ac32de33ef5e673c3e8b452417dcc0b5f809
parent89299cf924543f454aa828d34d2d26cb1885ed35 (diff)
downloadlibpinyin-40f435b0c74f061134f37e4baf48520d1dbb11e0.zip
libpinyin-40f435b0c74f061134f37e4baf48520d1dbb11e0.tar.gz
libpinyin-40f435b0c74f061134f37e4baf48520d1dbb11e0.tar.xz
fixes a typo
-rw-r--r--src/storage/ngram.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/ngram.cpp b/src/storage/ngram.cpp
index fa7ed8f..c05eb6b 100644
--- a/src/storage/ngram.cpp
+++ b/src/storage/ngram.cpp
@@ -458,7 +458,7 @@ bool merge_single_gram(SingleGram * merged, const SingleGram * system,
/* do append operation here */
merged_chunk.append_content(cur_system, sizeof(SingleGramItem));
cur_system++;
- } if (cur_system->m_token > cur_user->m_token) {
+ } else if (cur_system->m_token > cur_user->m_token) {
/* do append operation here */
merged_chunk.append_content(cur_user, sizeof(SingleGramItem));
cur_user++;