diff options
author | Arnur Nigmetov <a.nigmetov@gmail.com> | 2018-05-31 23:42:22 +0200 |
---|---|---|
committer | Arnur Nigmetov <a.nigmetov@gmail.com> | 2018-05-31 23:42:22 +0200 |
commit | c563d463ffce73b070b35e62baf980d19d0bc4ac (patch) | |
tree | 94712f7d2b7f618166b3021dfa3b03930739c945 /geom_matching/wasserstein/include/auction_oracle_kdtree_restricted.hpp | |
parent | 8ffc1482c88fd1c503524f6e328f69fe3fdede6c (diff) |
2 bugs fixed in Jacobi for point cloud
Diffstat (limited to 'geom_matching/wasserstein/include/auction_oracle_kdtree_restricted.hpp')
-rw-r--r-- | geom_matching/wasserstein/include/auction_oracle_kdtree_restricted.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geom_matching/wasserstein/include/auction_oracle_kdtree_restricted.hpp b/geom_matching/wasserstein/include/auction_oracle_kdtree_restricted.hpp index 7817bf3..3c3cba3 100644 --- a/geom_matching/wasserstein/include/auction_oracle_kdtree_restricted.hpp +++ b/geom_matching/wasserstein/include/auction_oracle_kdtree_restricted.hpp @@ -243,7 +243,7 @@ AuctionOracleKDTreeRestricted<Real_, PointContainer_>::get_optimal_bid_debug(Idx Real best_item_value = std::numeric_limits<Real>::max(); Real second_best_item_value = std::numeric_limits<Real>::max(); - for(IdxType item_idx = 0; item_idx < this->items.size(); ++item_idx) { + for(IdxType item_idx = 0; item_idx < static_cast<IdxType>(this->items.size()); ++item_idx) { auto item = this->items[item_idx]; if (item.type != bidder.type and item_idx != bidder_idx) continue; @@ -258,7 +258,7 @@ AuctionOracleKDTreeRestricted<Real_, PointContainer_>::get_optimal_bid_debug(Idx for(size_t item_idx = 0; item_idx < this->items.size(); ++item_idx) { auto item = this->items[item_idx]; - if (item.type != bidder.type and item_idx != bidder_idx) + if (item.type != bidder.type and static_cast<IdxType>(item_idx) != bidder_idx) continue; if (item_idx == best_item_idx) continue; |