Skip to content

Commit

Permalink
Refs #6940 fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vickie Lynch committed Jul 8, 2013
1 parent b497f31 commit 5b1a8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/MDEvents/src/MDGridBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ namespace MDEvents
{
coord_t eventCenter[nd];
for (size_t l=0; l<nd; l++)eventCenter[l] = coordTable[k*nColumns+skipCol+l];
coord_t out[nd];
coord_t out[2];
radiusTransform.apply(eventCenter, out);
// add event to appropriate y channel
size_t xchannel;
Expand Down Expand Up @@ -1457,7 +1457,7 @@ namespace MDEvents
box->getCenter(boxCenter);

// Distance from center to the peak integration center
coord_t out[nd];
coord_t out[2];
radiusTransform.apply(boxCenter, out);

if (out[0] < std::sqrt(diagonalSquared*0.72 + radius*radius) && std::fabs(out[1]) < std::sqrt(diagonalSquared*0.72 + 0.25*length*length))
Expand Down

0 comments on commit 5b1a8c6

Please sign in to comment.