Skip to content
Snippets Groups Projects
Commit d0641288 authored by ilor's avatar ilor
Browse files

fix UB in wcclrun

parent 00376006
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ void do_sentence(const boost::shared_ptr<Corpus2::Sentence>& sentence, ...@@ -89,7 +89,7 @@ void do_sentence(const boost::shared_ptr<Corpus2::Sentence>& sentence,
{ {
Wccl::SentenceContext sc(sentence); Wccl::SentenceContext sc(sentence);
std::vector< std::vector< UnicodeString > > outputs(sentence->size()); std::vector< std::vector< UnicodeString > > outputs(sentence->size());
std::vector<int> lengths(ops.size(), 0); std::vector<int> lengths(ops.size() + 1, 0);
streamsave sv(std::cout); streamsave sv(std::cout);
for (size_t i = 0; i < sentence->size(); ++i) { for (size_t i = 0; i < sentence->size(); ++i) {
sc.set_position(i); sc.set_position(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment