Skip to content

Commit

Permalink
refs #4013 Fix conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Nov 3, 2011
1 parent 3385ec4 commit d73d542
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Code/Mantid/Framework/Algorithms/src/NormaliseByVanadium.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ namespace Algorithms
{
MatrixWorkspace_sptr sampleWS = getProperty("SampleInputWorkspace");
MatrixWorkspace_sptr vanadiumWS = getProperty("VanadiumInputWorkspace");
int neighbours = getProperty("NumberOfNeighbours");
unsigned int uNeighbours = unsigned int(neighbours);
unsigned int uNeighbours = static_cast<unsigned int>(getProperty("NumberOfNeighbours"));
if(sampleWS->getXDimension()->getNBins() != vanadiumWS->getXDimension()->getNBins())
{
throw std::runtime_error("Sample and Vanadium workspaces do not have the same number of bins.");
Expand Down

0 comments on commit d73d542

Please sign in to comment.