diff options
author | Peng Wu <alexepico@gmail.com> | 2011-04-08 14:42:08 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-04-08 14:42:08 +0800 |
commit | 16383e366489943da229e97badab62625c85751d (patch) | |
tree | 14edd8d33102270af9ea79918bdce5ed08c7e214 | |
parent | 8c7b4f779a5a9bc8b01f1580a44fa02ebc1948f1 (diff) | |
download | libpinyin-16383e366489943da229e97badab62625c85751d.tar.gz libpinyin-16383e366489943da229e97badab62625c85751d.tar.xz libpinyin-16383e366489943da229e97badab62625c85751d.zip |
fixes a warning
-rw-r--r-- | tests/lookup/test_simple_lookup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lookup/test_simple_lookup.cpp b/tests/lookup/test_simple_lookup.cpp index 70306be..147d8d6 100644 --- a/tests/lookup/test_simple_lookup.cpp +++ b/tests/lookup/test_simple_lookup.cpp @@ -85,7 +85,7 @@ int main( int argc, char * argv[]){ print_time(start_time, times); for ( size_t i = 0; i < results->len; ++i){ phrase_token_t * token = &g_array_index(results, phrase_token_t, i); - if ( NULL == *token) + if ( null_token == *token) continue; printf("pos:%ld,token:%d\t", i, *token); } |