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 581dbd6 commit ce5b26c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/lsst/meas/modelfit/Likelihood.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Likelihood
Likelihood(PTR(Model) model, ndarray::Array<Scalar const,1,1> const & fixed) :
_model(model), _fixed(fixed) {
LSST_THROW_IF_NE(
fixed.getSize<0>(), model->getFixedDim(),
fixed.getSize<0>(), static_cast<std::size_t>(model->getFixedDim()),
pex::exceptions::LengthError,
"Fixed parameter vector size (%d) does not match Model fixed parameter dimensionality (%d)"
);
Expand Down
2 changes: 1 addition & 1 deletion src/Sampling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ ndarray::Array<Scalar,1,1> SamplingInterpreter::computeSampleQuantiles(
if (!r.second) r.first->second += i->get(_weightKey);
}
Scalar cumulative = 0.0;
int iFraction = 0;
std::size_t iFraction = 0;
std::map<Scalar,Scalar>::const_iterator current = map.begin(), end = map.end();
std::pair<Scalar,Scalar> last(current->first, 0.0);
for (; current != end; ++current) {
Expand Down

0 comments on commit ce5b26c

Please sign in to comment.