summaryrefslogtreecommitdiff
path: root/community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-24 00:48:02 -0700
committerroot <root@rshg054.dnsready.net>2013-03-24 00:48:02 -0700
commit31416859638d756d88136e4e0eb78027c16ac17f (patch)
treeba60745c928ce1e6525cd1994b3009016fa11c55 /community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch
parentbfffe04eef66a8556e972c888cc854a202b307d9 (diff)
Sun Mar 24 00:47:57 PDT 2013
Diffstat (limited to 'community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch')
-rw-r--r--community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch b/community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch
new file mode 100644
index 000000000..c895adf4c
--- /dev/null
+++ b/community/libpinyin/00fec992f5c760f546a1db933fb08325fc9cccbf.patch
@@ -0,0 +1,25 @@
+From 00fec992f5c760f546a1db933fb08325fc9cccbf Mon Sep 17 00:00:00 2001
+From: Peng Wu <alexepico@gmail.com>
+Date: Sat, 23 Mar 2013 09:52:46 +0800
+Subject: [PATCH] fixes import dict
+
+---
+ src/storage/phrase_large_table2.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
+index 368d03d..34bb12d 100644
+--- a/src/storage/phrase_large_table2.h
++++ b/src/storage/phrase_large_table2.h
+@@ -133,7 +133,7 @@ static inline int reduce_tokens(const PhraseTokens tokens,
+ }
+
+ /* the following line will be removed in future after code are verified. */
+- assert(0 == num || 1 == num);
++ assert(0 <= num && num <= 3);
+
+ return num;
+ }
+--
+1.8.1.5
+