projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d304f96
)
add assert to get_first_token
author
Peng Wu
<alexepico@gmail.com>
Tue, 4 Sep 2012 02:32:01 +0000
(10:32 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Tue, 4 Sep 2012 02:32:01 +0000
(10:32 +0800)
src/storage/phrase_large_table2.h
patch
|
blob
|
history
diff --git
a/src/storage/phrase_large_table2.h
b/src/storage/phrase_large_table2.h
index
c4d4092
..
9f9f718
100644
(file)
--- a/
src/storage/phrase_large_table2.h
+++ b/
src/storage/phrase_large_table2.h
@@
-125,6
+125,9
@@
static inline int get_first_token(PhraseTokens tokens,
}
}
+ /* the following line will be removed in future after code are verified. */
+ assert(0 == num || 1 == num);
+
return num;
}