Skip to content

Commit

Permalink
refs #4257 #4203. GCC Warning fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Dec 7, 2011
1 parent 254d448 commit 808377e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/Crystal/src/IndexSXPeaks.cpp
Expand Up @@ -93,7 +93,7 @@ namespace Mantid
*/
void IndexSXPeaks::cullHKLs(std::vector<PeakCandidate>& peakCandidates, Mantid::Geometry::UnitCell& unitcell)
{
int npeaks = peakCandidates.size();
size_t npeaks = peakCandidates.size();
for (std::size_t p=0;p<npeaks;p++)
{
for (std::size_t q=0;q<npeaks;q++)
Expand All @@ -116,7 +116,7 @@ namespace Mantid
{
// Find two non-colinear peaks
bool all_collinear=true;
int npeaks = peakCandidates.size();
size_t npeaks = peakCandidates.size();
for (std::size_t i=0;i<npeaks;i++)
{
for (std::size_t j=i;j<npeaks;j++)
Expand Down Expand Up @@ -223,7 +223,7 @@ namespace Mantid
prog.report(); //4th progress report.

//Now we can index the input/output peaks workspace
for(int i = 0; i < npeaks; i++)
for(size_t i = 0; i < npeaks; i++)
{
IPeak& peak = ws->getPeak(i);
try
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Crystal/test/IndexSXPeaksTest.h
Expand Up @@ -2,7 +2,7 @@
#define INDEX_SX_PEAKS_TEST_H_

#include <cxxtest/TestSuite.h>
#include "MantidAPI/ITableWorkspace.h";
#include "MantidAPI/ITableWorkspace.h"
#include "MantidAPI/WorkspaceFactory.h"
#include "MantidAPI/TableRow.h"
#include "MantidCrystal/IndexSXPeaks.h"
Expand Down

0 comments on commit 808377e

Please sign in to comment.