fixes a typo
authorPeng Wu <alexepico@gmail.com>
Wed, 3 Nov 2010 06:39:20 +0000 (14:39 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 3 Nov 2010 06:39:20 +0000 (14:39 +0800)
src/storage/phrase_index.cpp
utils/segment/spseg.cpp

index 8bd65f6..364601e 100644 (file)
@@ -288,6 +288,8 @@ bool FacadePhraseIndex::load_text(guint8 phrase_index, FILE * infile){
        if ( feof(infile) )
            break;
 
+        assert(PHRASE_INDEX_LIBRARY_INDEX(token) == phrase_index );
+
        glong written;
        utf16_t * phrase_utf16 = g_utf8_to_utf16(phrase, -1, NULL, 
                                               &written, NULL);
index a499f19..8c4fd00 100644 (file)
@@ -148,7 +148,7 @@ int main(int argc, char * argv[]){
     }
 
     //init phrase table
-    g_phrases =  new PhraseLargeTable;
+    g_phrases = new PhraseLargeTable;
     FILE * gb_file = fopen("../../data/gb_char.table", "r");
     if ( gb_file == NULL ){
        fprintf(stderr, "can't open gb_char.table!\n");