summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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. */