add assert to get_first_token
authorPeng Wu <alexepico@gmail.com>
Tue, 4 Sep 2012 02:32:01 +0000 (10:32 +0800)
committerPeng Wu <alexepico@gmail.com>
Tue, 4 Sep 2012 02:32:01 +0000 (10:32 +0800)
src/storage/phrase_large_table2.h

index c4d4092..9f9f718 100644 (file)
@@ -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;
 }