summaryrefslogtreecommitdiffstats
path: root/src/storage/ngram.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2022-06-06 17:32:00 +0800
committerPeng Wu <alexepico@gmail.com>2022-06-06 17:32:00 +0800
commit2323c59d337ca56c585a8b58b855e84938ecfc27 (patch)
treedc32a1af5a593170bd6149d361521832f1885ca5 /src/storage/ngram.cpp
parent5f3df104b5ac0c3497a48cfc476eb3eedf1e543b (diff)
downloadlibpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.tar.gz
libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.tar.xz
libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.zip
Use abort function instead of assert macro
Diffstat (limited to 'src/storage/ngram.cpp')
-rw-r--r--src/storage/ngram.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/ngram.cpp b/src/storage/ngram.cpp
index ca845c5..c952768 100644
--- a/src/storage/ngram.cpp
+++ b/src/storage/ngram.cpp
@@ -105,7 +105,7 @@ guint32 SingleGram::mask_out(phrase_token_t mask, phrase_token_t value){
}
bool SingleGram::prune(){
- assert(false);
+ abort();
#if 0
SingleGramItem * begin = (SingleGramItem *)
((const char *)(m_chunk.begin()) + sizeof(guint32));