Skip to content

Commit

Permalink
minor clean in Checker
Browse files Browse the repository at this point in the history
issue #33
  • Loading branch information
Valentin Noel committed Dec 16, 2013
1 parent 7650d7e commit 00e469c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ bool Checker::isIterationValid( const ShPtrElement element, std::string& errorMe
size_t repetMin = 0;
size_t repetMax = 0;

if( ! repetPair.first.empty() )
if( repetPair.first.size() )
repetMin = _exprParser->getExpressionResult< size_t >( repetPair.first );
if( ! repetPair.second.empty() )
if( repetPair.second.size() )
repetMax = _exprParser->getExpressionResult< size_t >( repetPair.second );

LOG_TRACE( "[checker] repetitions : " << element->_iteration << " / [" << repetMin << ", " << repetMax << "]" );
Expand Down

0 comments on commit 00e469c

Please sign in to comment.