Skip to content

Commit

Permalink
fixes a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Jun 9, 2015
1 parent 1b21bea commit f0f32b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/phrase_index.cpp
Expand Up @@ -556,7 +556,7 @@ bool FacadePhraseIndex::load_text(guint8 phrase_index, FILE * infile){
item_ptr->set_phrase_string(written, phrase_ucs4);
}

pinyin_option_t options = USE_TONE;
pinyin_option_t options = USE_TONE;
FullPinyinParser2 parser;
ChewingKeyVector keys = g_array_new(FALSE, FALSE, sizeof(ChewingKey));
ChewingKeyRestVector key_rests =
Expand Down Expand Up @@ -623,7 +623,7 @@ int SubPhraseIndex::get_range(/* out */ PhraseIndexRange & range){

/* remove trailing zeros. */
const table_offset_t * poffset = NULL;
for (poffset = end; poffset > begin; --poffset) {
for (poffset = end; poffset > begin + 1; --poffset) {
if (NULL != *(poffset - 1))
break;
}
Expand Down

0 comments on commit f0f32b8

Please sign in to comment.