diff options
Diffstat (limited to 'src/pinyin.cpp')
-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 a3fd37d..5a1b683 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -594,7 +594,7 @@ bool pinyin_translate_token(pinyin_instance_t * instance, item.get_phrase_string(buffer); guint8 length = item.get_phrase_length(); *word = g_utf16_to_utf8(buffer, length, NULL, NULL, NULL); - return retval == ERROR_OK; + return ERROR_OK == retval; } bool pinyin_train(pinyin_instance_t * instance){ |