summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-08-24 14:20:10 +0800
committerPeng Wu <alexepico@gmail.com>2012-08-25 13:26:17 +0800
commitc4d8e9b2effba5850cf03de5c275b95a5f8b4a22 (patch)
tree67b94c46762aeb24f4f9d848e8ba44f3138737c6
parent204216dbd7732bf6293d43b37b92374268cefb97 (diff)
downloadlibpinyin-0.7.x.zip
libpinyin-0.7.x.tar.gz
libpinyin-0.7.x.tar.xz
fixes pinyin_lookup_token0.7.x
-rw-r--r--src/pinyin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 15a65e7..507df88 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -1613,7 +1613,7 @@ bool pinyin_lookup_token(pinyin_instance_t * instance,
int retval = context->m_phrase_table->search(ucs4_len, ucs4_phrase, *token);
- return SEARCH_OK == retval;
+ return SEARCH_OK & retval;
}
/* the returned word should be freed by g_free. */