Try to fix Visual Studio compiler warning.
Related to commit 119ab519a4
.
This commit is contained in:
parent
7190443057
commit
6b40d93f6f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue