summaryrefslogtreecommitdiffstats
path: root/utils/training/import_k_mixture_model.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 /utils/training/import_k_mixture_model.cpp
parent5f3df104b5ac0c3497a48cfc476eb3eedf1e543b (diff)
downloadlibpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.tar.gz
libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.tar.xz
libpinyin-2323c59d337ca56c585a8b58b855e84938ecfc27.zip
Use abort function instead of assert macro
Diffstat (limited to 'utils/training/import_k_mixture_model.cpp')
-rw-r--r--utils/training/import_k_mixture_model.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/training/import_k_mixture_model.cpp b/utils/training/import_k_mixture_model.cpp
index 6503dbf..45f8d5e 100644
--- a/utils/training/import_k_mixture_model.cpp
+++ b/utils/training/import_k_mixture_model.cpp
@@ -130,7 +130,7 @@ bool parse_body(FILE * input, PhraseLargeTable3 * phrase_table,
parse_bigram(input, phrase_table, phrase_index, bigram);
goto retry;
default:
- assert(FALSE);
+ abort();
}
} while (my_getline(input) != -1) ;
@@ -170,7 +170,7 @@ bool parse_unigram(FILE * input, PhraseLargeTable3 * phrase_table,
case GRAM_2_LINE:
goto end;
default:
- assert(FALSE);
+ abort();
}
} while (my_getline(input) != -1);
@@ -244,7 +244,7 @@ bool parse_bigram(FILE * input, PhraseLargeTable3 * phrase_table,
case GRAM_2_LINE:
goto end;
default:
- assert(FALSE);
+ abort();
}
} while (my_getline(input) != -1);