From d51091e95735909b48f025be18238cd2f7b3931f Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 14 Oct 2010 14:46:11 +0800 Subject: fixes compile warning for pinyin_lookup.h --- src/include/novel_types.h | 1 + src/lookup/pinyin_lookup.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/novel_types.h b/src/include/novel_types.h index 6f33a9e..82a9947 100755 --- a/src/include/novel_types.h +++ b/src/include/novel_types.h @@ -125,6 +125,7 @@ enum AttachOption{ #define MAX_PHRASE_LENGTH 16 +const phrase_token_t null_token = 0; const phrase_token_t sentence_start = 1; const phrase_token_t token_min = 0; const phrase_token_t token_max = UINT_MAX; diff --git a/src/lookup/pinyin_lookup.h b/src/lookup/pinyin_lookup.h index e585788..0e8287f 100644 --- a/src/lookup/pinyin_lookup.h +++ b/src/lookup/pinyin_lookup.h @@ -45,7 +45,7 @@ struct lookup_value_t{ gint32 m_last_step; lookup_value_t(gfloat poss = FLT_MAX){ - m_handles[0] = NULL; m_handles[1] = NULL; + m_handles[0] = null_token; m_handles[1] = null_token; m_poss = poss; m_last_step = -1; } -- cgit