Skip to content

Commit

Permalink
re #6010 warning hunting
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed Oct 25, 2012
1 parent 961cefa commit 3a02f35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Code/Mantid/Framework/Kernel/src/MultiFileNameParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,13 @@ namespace Kernel
throw std::runtime_error(
"Unable to generate a range with a step size of zero.");

int limit = 100;
size_t limit = 100;
int success = ConfigService::Instance().getValue("loading.multifilelimit",limit);
if (!success)
{
limit = 100;
}

unsigned int orderedTo = from>to?from:to;
unsigned int orderedFrom = from>to?to:from;
unsigned int numberOfFiles = (orderedTo-orderedFrom)/stepSize;
Expand Down

0 comments on commit 3a02f35

Please sign in to comment.