Skip to content

Commit

Permalink
refs #4257. Fix type conversion warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Dec 7, 2011
1 parent 5460152 commit b47055a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/Crystal/src/IndexSXPeaks.cpp
Expand Up @@ -150,7 +150,7 @@ namespace Mantid

// Need a least two peaks
std::size_t npeaks=peakindices.size();
if (npeaks > ws->getNumberPeaks())
if (npeaks > size_t(ws->getNumberPeaks()))
{
throw std::runtime_error("Cannot have more peaks indices than actual peaks");
}
Expand Down Expand Up @@ -201,7 +201,7 @@ namespace Mantid
}
else //Create candidate peaks from all available peaks
{
for (std::size_t i=0;i<npeaks;i++)
for (int i=0;i<int(npeaks);i++)
{
IPeak& peak = ws->getPeak(i);
V3D Qs = peak.getQSampleFrame();
Expand Down

0 comments on commit b47055a

Please sign in to comment.