Issue #22: Fix compilation warnings

This commit is contained in:
Jakub Melka
2022-07-31 18:32:57 +02:00
parent b30150a503
commit e310efb763
70 changed files with 424 additions and 435 deletions

View File

@ -202,10 +202,10 @@ void PDFAlgorithmLongestCommonSubsequence<Iterator, Comparator>::perform()
const size_t index1 = i1 - 1;
const size_t index2 = i2 - 1;
auto it1 = std::next(m_it1, index1);
auto it2 = std::next(m_it2, index2);
auto cit1 = std::next(m_it1, index1);
auto cit2 = std::next(m_it2, index2);
if (m_comparator(*it1, *it2))
if (m_comparator(*cit1, *cit2))
{
item.index1 = index1;
item.index2 = index2;