summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-04-08 14:42:08 +0800
committerPeng Wu <alexepico@gmail.com>2011-04-08 14:42:08 +0800
commit16383e366489943da229e97badab62625c85751d (patch)
tree14edd8d33102270af9ea79918bdce5ed08c7e214 /tests
parent8c7b4f779a5a9bc8b01f1580a44fa02ebc1948f1 (diff)
downloadlibpinyin-16383e366489943da229e97badab62625c85751d.tar.gz
libpinyin-16383e366489943da229e97badab62625c85751d.tar.xz
libpinyin-16383e366489943da229e97badab62625c85751d.zip
fixes a warning
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/test_simple_lookup.cpp2
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);
}