commit 3a6ab4d67f0e482d3f8a41f4c64a125a4e2beef9 Author: Daniel Swanson Date: Wed Jun 2 13:58:48 2021 -0500 all tests now pass diff --git a/lttoolbox/fst_processor.cc b/lttoolbox/fst_processor.cc index 77e3d5d..c60a6d2 100644 --- a/lttoolbox/fst_processor.cc +++ b/lttoolbox/fst_processor.cc @@ -1227,7 +1227,6 @@ FSTProcessor::analysis(InputFile& input, UFILE *output) do { val = readAnalysis(input); - cerr << "val is " << val << endl; // test for final states if(current_state.isFinal(all_finals)) { diff --git a/lttoolbox/state.cc b/lttoolbox/state.cc index b1bf249..80fc5a2 100644 --- a/lttoolbox/state.cc +++ b/lttoolbox/state.cc @@ -539,9 +539,11 @@ State::filterFinals(map const &finals, result += it->first; if(display_weights) { - UChar* temp; + UChar* temp = new UChar[16]; + // if anyone wants a weight of 10000, this will not be enough u_sprintf(temp, "", it->second); result += temp; + delete temp; } }