summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-09-13 14:55:14 +0800
committerPeng Wu <alexepico@gmail.com>2010-09-13 14:55:14 +0800
commit5d676db7fd22fbbf1b56043e7dd89d0c326c8fd1 (patch)
tree7b10eae128831bbf9eb71fd62fd0d831631ec093
parent3db9ee7e2255b01e53865677dabf3fb680bc2b2e (diff)
downloadlibpinyin-5d676db7fd22fbbf1b56043e7dd89d0c326c8fd1.tar.gz
libpinyin-5d676db7fd22fbbf1b56043e7dd89d0c326c8fd1.tar.xz
libpinyin-5d676db7fd22fbbf1b56043e7dd89d0c326c8fd1.zip
fixes mmseg
-rw-r--r--src/segment/mmseg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/segment/mmseg.cpp b/src/segment/mmseg.cpp
index 1a09e8a..f7b2391 100644
--- a/src/segment/mmseg.cpp
+++ b/src/segment/mmseg.cpp
@@ -77,7 +77,7 @@ bool segment(GHashTable * phrases, // Lookup Phrases
assert( *p == '\0' );
//initialize segment steps values.
- for ( size_t i = 0; i < phrase_length + 1; ++i){
+ for ( size_t i = 1; i < phrase_length + 1; ++i){
SegmentStep* step = &g_array_index(steps, SegmentStep, i);
step->m_nword = UINT_MAX;
}