Skip to content

Commit

Permalink
Avoid signed/unsigned integer comparison warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Oct 3, 2016
1 parent a7d0b29 commit e96d803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/matchOptimisticB.cc
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ namespace astrom {
if (posRefBegInd < 0) {
throw LSST_EXCEPT(pexExcept::InvalidParameterError, "posRefBegInd < 0");
}
if (posRefBegInd >= posRefCat.size()) {
if (static_cast<size_t>(posRefBegInd) >= posRefCat.size()) {
throw LSST_EXCEPT(pexExcept::InvalidParameterError, "posRefBegInd too big");
}
double const maxRotationRad = afw::geom::degToRad(control.maxRotationDeg);
Expand Down Expand Up @@ -768,7 +768,7 @@ namespace astrom {
std::cout << "Number of matches: " << matPair.size() << " vs " <<
control.minMatchedPairs << std::endl;
}
if (matPair.size() <= control.minMatchedPairs) {
if (matPair.size() <= static_cast<std::size_t>(control.minMatchedPairs)) {
if (verbose) {
std::cout << "Insufficient final matches; continuing" << std::endl;
}
Expand Down

0 comments on commit e96d803

Please sign in to comment.