Skip to content

Commit

Permalink
refs #4013 fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Oct 27, 2011
1 parent 85da5ee commit 87d1ca1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace Algorithms
it++;
}
spectraSum += vanSumTOF_WS->readY(i)[0];
yAvgWS->dataY(i)[0] = spectraSum/(specIdMap.size() + 1);
yAvgWS->dataY(i)[0] = spectraSum/(double(specIdMap.size() + 1));
}
catch(Kernel::Exception::NotFoundError&)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ class NormaliseByVanadiumTest : public CxxTest::TestSuite
TS_ASSERT_EQUALS(sampleWS->size(), result->size());

//Could also run compare workspace alg here!
for(int i = 0; i < result->getNumberHistograms(); i++)
for(size_t i = 0; i < result->getNumberHistograms(); i++)
{
for(int j = 0; j < sampleWS->readY(i).size(); j++)
for(size_t j = 0; j < sampleWS->readY(i).size(); j++)
{
TS_ASSERT(sampleWS->readY(i)[j] == result->readY(i)[j]);
}
Expand Down

0 comments on commit 87d1ca1

Please sign in to comment.