Skip to content

Commit

Permalink
COMP: Fix overly narrow cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Leengit authored and dzenanz committed Apr 18, 2022
1 parent c294138 commit ea5d759
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ MIRegistrationFunction<TFixedImage, TMovingImage, TDisplacementField>::ComputeUp
double msigma = 0.0;
double jointsigma = 0.0;

const double numsamplesB{ fixedSamplesB.size() };
const double numsamplesA{ fixedSamplesA.size() };
const double numsamplesB{ static_cast<double>(fixedSamplesB.size()) };
const double numsamplesA{ static_cast<double>(fixedSamplesA.size()) };
double nsamp = numsamplesB;
// if (maxf == minf && maxm == minm) return update;
// else std::cout << " b samps " << fixedSamplesB.size()
Expand Down

0 comments on commit ea5d759

Please sign in to comment.