Skip to content

Commit

Permalink
refs #5849 fixing Unix warnings (and questioning tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jan 27, 2013
1 parent b1943d2 commit e50e4a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/Framework/MDEvents/src/MDBoxFlatTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ namespace Mantid
Boxes.assign(numBoxes, NULL);

uint64_t totalNumEvents(0);
m_nDim = bc->getNDims();
if(m_nDim<=0)throw std::runtime_error("Workspace dimesnions are not defined properly");

for (size_t i=0; i<numBoxes; i++)
{
Expand All @@ -405,7 +407,7 @@ namespace Mantid

// Extents of the box, as a vector
std::vector<Mantid::Geometry::MDDimensionExtents<coord_t> > extentsVector(m_nDim);
for (size_t d=0; d<m_nDim; d++)
for (size_t d=0; d<size_t(m_nDim); d++)
extentsVector[d].setExtents(static_cast<double>(m_Extents[i*m_nDim*2 + d*2]),static_cast<double>(m_Extents[i*m_nDim*2 + d*2 + 1]));

// retrieve initial and file location and the numner of the events which belong to this box stored on the HDD
Expand Down

0 comments on commit e50e4a5

Please sign in to comment.