Skip to content

Commit

Permalink
Fixed a mac compiler warning in recodebeam.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Noah Metzger <noah.metzger@bib.uni-mannheim.de>
  • Loading branch information
noahmetzger committed Oct 23, 2018
1 parent e60318f commit f7f5f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lstm/recodebeam.cpp
Expand Up @@ -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<const char*, float> summed_propabilities;
for (auto it = choice_pairs.begin(); it != choice_pairs.end(); ++it) {
Expand Down

0 comments on commit f7f5f41

Please sign in to comment.