diff --git a/modules/cvv/src/view/linematchview.cpp b/modules/cvv/src/view/linematchview.cpp index b3d03d7e2..ca4c711c9 100644 --- a/modules/cvv/src/view/linematchview.cpp +++ b/modules/cvv/src/view/linematchview.cpp @@ -45,7 +45,7 @@ LineMatchView::LineMatchView(std::vector leftKeyPoints, qtutil::MatchScene *matchscene_ptr = matchscene.get(); int updateAreaDelay=std::min(std::max(matches.size(), std::max(leftKeyPoints.size(), - rightKeyPoints.size()))/10,50lu); + rightKeyPoints.size()))/(std::size_t)10,(std::size_t)50); matchscene_ptr->getLeftImage().setUpdateAreaDelay(updateAreaDelay); matchscene_ptr->getRightImage().setUpdateAreaDelay(updateAreaDelay); diff --git a/modules/cvv/src/view/pointmatchview.cpp b/modules/cvv/src/view/pointmatchview.cpp index 1bd490a3e..a6ac4696b 100644 --- a/modules/cvv/src/view/pointmatchview.cpp +++ b/modules/cvv/src/view/pointmatchview.cpp @@ -30,7 +30,7 @@ PointMatchView::PointMatchView(std::vector leftKeyPoints, auto matchmnt = util::make_unique(matches); qtutil::MatchScene *matchscene_ptr = matchscene.get(); - int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/10,50lu); + int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/(std::size_t)10,(std::size_t)50); matchscene_ptr->getLeftImage().setUpdateAreaDelay(updateAreaDelay); matchscene_ptr->getRightImage().setUpdateAreaDelay(updateAreaDelay); diff --git a/modules/cvv/src/view/translationsmatchview.cpp b/modules/cvv/src/view/translationsmatchview.cpp index 6ef3ff660..804c9e709 100644 --- a/modules/cvv/src/view/translationsmatchview.cpp +++ b/modules/cvv/src/view/translationsmatchview.cpp @@ -39,7 +39,7 @@ TranslationMatchView::TranslationMatchView( auto keyPointmnt = util::make_unique(allkeypoints); qtutil::MatchScene *matchscene_ptr = matchscene.get(); - int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/10,50lu); + int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/(std::size_t)10,(std::size_t)50); matchscene_ptr->getLeftImage().setUpdateAreaDelay(updateAreaDelay); matchscene_ptr->getRightImage().setUpdateAreaDelay(updateAreaDelay);