diff options
author | Peng Wu <alexepico@gmail.com> | 2016-03-02 15:22:50 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-03-02 15:22:50 +0800 |
commit | f3c74ca5eb43801efd396e030579a1b4d53decbc (patch) | |
tree | 89250befcbd18a46778f9274b09db62198263ba7 /src/storage/phrase_large_table3.cpp | |
parent | b176ce01e4c7aaa67b16511ecf82e963e67e33df (diff) | |
download | libpinyin-f3c74ca5eb43801efd396e030579a1b4d53decbc.tar.gz libpinyin-f3c74ca5eb43801efd396e030579a1b4d53decbc.tar.xz libpinyin-f3c74ca5eb43801efd396e030579a1b4d53decbc.zip |
write get_length method
Diffstat (limited to 'src/storage/phrase_large_table3.cpp')
-rw-r--r-- | src/storage/phrase_large_table3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/phrase_large_table3.cpp b/src/storage/phrase_large_table3.cpp index f1ae3e9..a769d0b 100644 --- a/src/storage/phrase_large_table3.cpp +++ b/src/storage/phrase_large_table3.cpp @@ -94,7 +94,7 @@ int PhraseTableEntry::get_length() const { const phrase_token_t * begin = (phrase_token_t *) m_chunk.begin(); const phrase_token_t * end = (phrase_token_t *) m_chunk.end(); - return begin - end; + return end - begin; } /* mask out method */ |