diff options
author | Peng Wu <alexepico@gmail.com> | 2010-11-03 14:39:20 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-11-03 14:39:20 +0800 |
commit | 40dbcb94a8058ce45edef5c6e5238c32121ebc1e (patch) | |
tree | feac3b338c80b51a29b7772c38a91ebb8bb4db87 | |
parent | 7e8a335a57c64349318d2e8a8e36eae36a8fa8f7 (diff) | |
download | libpinyin-40dbcb94a8058ce45edef5c6e5238c32121ebc1e.tar.gz libpinyin-40dbcb94a8058ce45edef5c6e5238c32121ebc1e.tar.xz libpinyin-40dbcb94a8058ce45edef5c6e5238c32121ebc1e.zip |
fixes a typo
-rw-r--r-- | src/storage/phrase_index.cpp | 2 | ||||
-rw-r--r-- | utils/segment/spseg.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index 8bd65f6..364601e 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -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); diff --git a/utils/segment/spseg.cpp b/utils/segment/spseg.cpp index a499f19..8c4fd00 100644 --- a/utils/segment/spseg.cpp +++ b/utils/segment/spseg.cpp @@ -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"); |