From: Peng Wu Date: Tue, 4 Sep 2012 02:32:01 +0000 (+0800) Subject: add assert to get_first_token X-Git-Tag: 0.7.91~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=473bfc9ba3ffe72940570a7c6a1878a77ff45434;p=platform%2Fupstream%2Flibpinyin.git add assert to get_first_token --- diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h index c4d4092..9f9f718 100644 --- a/src/storage/phrase_large_table2.h +++ b/src/storage/phrase_large_table2.h @@ -125,6 +125,9 @@ static inline int get_first_token(PhraseTokens tokens, } } + /* the following line will be removed in future after code are verified. */ + assert(0 == num || 1 == num); + return num; }