From 473bfc9ba3ffe72940570a7c6a1878a77ff45434 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 4 Sep 2012 10:32:01 +0800 Subject: add assert to get_first_token --- src/storage/phrase_large_table2.h | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit