From f7f5f4107333dabc3d7d0c26db91a552f2e4439b Mon Sep 17 00:00:00 2001 From: Noah Metzger Date: Tue, 23 Oct 2018 16:52:15 +0200 Subject: [PATCH] Fixed a mac compiler warning in recodebeam.cpp Signed-off-by: Noah Metzger --- src/lstm/recodebeam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lstm/recodebeam.cpp b/src/lstm/recodebeam.cpp index a7cb1d4ba3..b4716ae38f 100644 --- a/src/lstm/recodebeam.cpp +++ b/src/lstm/recodebeam.cpp @@ -258,7 +258,7 @@ void RecodeBeamSearch::ExtractBestPathAsWords(const TBOX& line_box, choice_pairs.push_back(choice); } } - if (best_choices.size() > 0 && i == best_choices.front().second - 1 + if ((best_choices.size() > 0 && i == best_choices.front().second - 1) || i == xcoords[word_end]-1) { std::map summed_propabilities; for (auto it = choice_pairs.begin(); it != choice_pairs.end(); ++it) {