Skip to content

Commit

Permalink
sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Sep 16, 2024
1 parent 1d2cfa8 commit 010f873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/src/MagneticField/BFieldMapUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ auto getMinMaxAndBinCount(std::vector<double>& xPos) {

// calculate maxima (add one last bin, because bin value always corresponds to
// left boundary)
const double stepX = (xMax - xMin) / (xBinCount - 1);
const double stepX = (xMax - xMin) / static_cast<double>(xBinCount - 1);
xMax += stepX;

// Return all values as a tuple
Expand Down
2 changes: 1 addition & 1 deletion Core/src/Material/MaterialMapUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ auto getMinMaxAndBinCount(std::vector<double>& xPos) {

// calculate maxima (add one last bin, because bin value always corresponds to
// left boundary)
const double stepX = (xMax - xMin) / (nBinsX - 1);
const double stepX = (xMax - xMin) / static_cast<double>(nBinsX - 1);
xMax += stepX;

// Return all values as a tuple
Expand Down

0 comments on commit 010f873

Please sign in to comment.