Skip to content

Commit

Permalink
refs #6543 technical changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Feb 28, 2013
1 parent be13c45 commit a2a5f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/Framework/DataHandling/src/LoadDetectorInfo.cpp
Expand Up @@ -1065,6 +1065,10 @@ void LoadDetectorInfo::readDetDotDatNXS(::NeXus::File *hFile, std::vector<detect
if(nDetectors!=detSphericalCoord.size()/3||nDetectors!=detPrWall.size()/2||nDetectors!=detID.size()/2)
throw std::runtime_error("The size of nexus data columns is not equal to each other");

if(nDetectors > std::numeric_limits<int>::max())
throw std::runtime_error("The number of detectors is bigger then max int for current architecture");


detStruct.resize(nDetectors);
detOffset.resize(nDetectors);
detType.resize(nDetectors);
Expand Down

0 comments on commit a2a5f68

Please sign in to comment.