Merge pull request #2026 from noahmetzger/master

Fixed a mac compiler warning in recodebeam.cpp
This commit is contained in:
zdenop 2018-10-23 18:20:21 +02:00 committed by GitHub
commit 981db8155d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {