Skip to content

Commit

Permalink
Refs #7732 fix compiler warning
Browse files Browse the repository at this point in the history
Id cahnged an int to a size_t, and there was a "if negative" check that would always return false with the new type
  • Loading branch information
keithnbrown committed Nov 4, 2013
1 parent 6b0d3bc commit 7ea0f5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadAscii2.cpp
Expand Up @@ -345,7 +345,10 @@ namespace Mantid
continue;
}
}
if( numCols < 0 ) numCols = lineCols;
if( numCols == 0 )
{
numCols = lineCols;
}
if( lineCols == m_baseCols || (lineCols == 1))
{
++matchingRows;
Expand Down

0 comments on commit 7ea0f5d

Please sign in to comment.