summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-09-02 14:33:23 +0800
committerPeng Wu <alexepico@gmail.com>2010-09-02 14:38:18 +0800
commite45b28dcf7234954f47192a65049caa1c231fe83 (patch)
treec7eb80d08cd61dcf3672a50206d30d21ecdac23c
parent82cbc78740e1bf34514137eddba58fa16e9788ac (diff)
downloadlibpinyin-e45b28dcf7234954f47192a65049caa1c231fe83.tar.gz
libpinyin-e45b28dcf7234954f47192a65049caa1c231fe83.tar.xz
libpinyin-e45b28dcf7234954f47192a65049caa1c231fe83.zip
fixes a typo
-rw-r--r--src/storage/pinyin_large_table.cpp6
-rw-r--r--tests/storage/test_pinyin_index.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/storage/pinyin_large_table.cpp b/src/storage/pinyin_large_table.cpp
index a5ed998..3b1e2e3 100644
--- a/src/storage/pinyin_large_table.cpp
+++ b/src/storage/pinyin_large_table.cpp
@@ -481,17 +481,17 @@ bool PinyinLargeTable::load_text(FILE * infile){
char pinyin[256];
char phrase[256];
phrase_token_t token;
- size_t freq;
+ size_t freq;
while ( !feof(infile) ) {
fscanf(infile, "%s", pinyin);
fscanf(infile, "%s", phrase);
fscanf(infile, "%ld", &token);
- fscanf(infile, "%ld", &freq);
+ fscanf(infile, "%ld", &freq);
if ( feof(infile) )
break;
-
+
PinyinDefaultParser parser;
NullPinyinValidator validator;
PinyinKeyVector keys;
diff --git a/tests/storage/test_pinyin_index.cpp b/tests/storage/test_pinyin_index.cpp
index d9a5abf..b1e0f14 100644
--- a/tests/storage/test_pinyin_index.cpp
+++ b/tests/storage/test_pinyin_index.cpp
@@ -131,7 +131,7 @@ int main( int argc, char * argv[]){
for ( size_t o = 0; o < item.get_phrase_length(); ++o){
printf("%s'", pinyin_buffer[o].get_key_string());
}
- printf("\b \t %d", freq);
+ printf("\b\t%d\t", freq);
}
printf("\n");
}