Skip to content

Commit

Permalink
refs #5986 fixing Unix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Oct 24, 2012
1 parent c48b82a commit 8ed3744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/MDAlgorithms/src/FakeMDEventData.cpp
Expand Up @@ -319,7 +319,7 @@ namespace MDAlgorithms
maxPar[d] = max;
nBins[d] = ws->getDimension(d)->getNBins();
gridSize*=nBins[d];
delta[d] = (max-min)/nBins[d];
delta[d] = (max-min)/double(nBins[d]);
}
// Create all the requested events
std::vector<size_t> indexes;
Expand All @@ -335,7 +335,7 @@ namespace MDAlgorithms
for (size_t d=0; d<nd; d++)
{
// put events into cell centers; // 0.50001 0001 -- is "kind of" epsilon to avoid randomization error at cell ecntre
centers[d]= coord_t(minPar[d]+delta[d]*(indexes[d]+0.50001));
centers[d]= coord_t(minPar[d]+delta[d]*(double(indexes[d])+0.50001));
}

// Default or randomized error/signal
Expand Down

0 comments on commit 8ed3744

Please sign in to comment.