diff options
author | Peng Wu <alexepico@gmail.com> | 2012-08-24 14:20:10 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-08-25 13:26:17 +0800 |
commit | c4d8e9b2effba5850cf03de5c275b95a5f8b4a22 (patch) | |
tree | 67b94c46762aeb24f4f9d848e8ba44f3138737c6 /src | |
parent | 204216dbd7732bf6293d43b37b92374268cefb97 (diff) | |
download | libpinyin-c4d8e9b2effba5850cf03de5c275b95a5f8b4a22.tar.gz libpinyin-c4d8e9b2effba5850cf03de5c275b95a5f8b4a22.tar.xz libpinyin-c4d8e9b2effba5850cf03de5c275b95a5f8b4a22.zip |
fixes pinyin_lookup_token0.7.x
Diffstat (limited to 'src')
-rw-r--r-- | src/pinyin.cpp | 2 |
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. */ |