Skip to content

Commit

Permalink
Fix warning that occurs under windows
Browse files Browse the repository at this point in the history
warning C4244: 'argument' : conversion de 'const _Ty' en 'const unsigned __int64', perte possible de données
  • Loading branch information
fspindle committed Mar 28, 2024
1 parent 7de32eb commit d0b5d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/include/visp3/core/vpMunkres.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ inline std::vector<std::pair<unsigned int, unsigned int> > vpMunkres::run(std::v
{
const auto original_row_size = static_cast<Type>(costs.size());
const auto original_col_size = static_cast<Type>(costs.front().size());
const auto sq_size = std::max<Type>(original_row_size, original_col_size);
const size_t sq_size = static_cast<size_t>(std::max<Type>(original_row_size, original_col_size));

auto mask = std::vector<std::vector<vpMunkres::ZERO_T> >(sq_size, std::vector<vpMunkres::ZERO_T>(sq_size, vpMunkres::ZERO_T::NA));
auto row_cover = std::vector<bool>(sq_size, false);
Expand Down

0 comments on commit d0b5d2d

Please sign in to comment.