Try to fix Visual Studio compiler warning.

Related to commit 119ab519a4.
This commit is contained in:
Edoardo Prezioso 2012-11-28 12:04:29 +01:00
parent 7190443057
commit 6b40d93f6f
1 changed files with 1 additions and 1 deletions

View File

@ -4382,7 +4382,7 @@ bool Tokenizer::simplifyConstTernaryOp()
!Token::Match(tok->tokAt(-4), "<|=|,|(|[|{|}|;|case|return ( %bool%|%num% )")) !Token::Match(tok->tokAt(-4), "<|=|,|(|[|{|}|;|case|return ( %bool%|%num% )"))
continue; continue;
const unsigned int offset = (tok->previous()->str() == ")") ? 2 : 1; const int offset = (tok->previous()->str() == ")") ? 2 : 1;
if (tok->strAt(-2*offset) == "<" && !TemplateSimplifier::templateParameters(tok->tokAt(-2*offset))) if (tok->strAt(-2*offset) == "<" && !TemplateSimplifier::templateParameters(tok->tokAt(-2*offset)))
continue; continue;