fixes pinyin_lookup_token
authorPeng Wu <alexepico@gmail.com>
Fri, 24 Aug 2012 06:20:10 +0000 (14:20 +0800)
committerPeng Wu <alexepico@gmail.com>
Sat, 25 Aug 2012 05:26:17 +0000 (13:26 +0800)
src/pinyin.cpp

index 15a65e7..507df88 100644 (file)
@@ -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. */