From 2323c59d337ca56c585a8b58b855e84938ecfc27 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 6 Jun 2022 17:32:00 +0800 Subject: Use abort function instead of assert macro --- src/storage/chewing_large_table2_kyotodb.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/storage/chewing_large_table2_kyotodb.cpp') diff --git a/src/storage/chewing_large_table2_kyotodb.cpp b/src/storage/chewing_large_table2_kyotodb.cpp index e57552c..c606982 100644 --- a/src/storage/chewing_large_table2_kyotodb.cpp +++ b/src/storage/chewing_large_table2_kyotodb.cpp @@ -179,7 +179,7 @@ int ChewingLargeTable2::search_internal(int phrase_length, CASE(15); CASE(16); default: - assert(false); + abort(); } #undef CASE @@ -277,7 +277,7 @@ int ChewingLargeTable2::add_index_internal(int phrase_length, CASE(15); CASE(16); default: - assert(false); + abort(); } #undef CASE @@ -348,7 +348,7 @@ int ChewingLargeTable2::remove_index_internal(int phrase_length, CASE(15); CASE(16); default: - assert(false); + abort(); } #undef CASE @@ -409,12 +409,12 @@ public: CASE(15); CASE(16); default: - assert(false); + abort(); } #undef CASE - assert(false); + abort(); return NOP; } -- cgit