From 6b40d93f6f1dcdab8ecd1823b6c2f554d5b7d108 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Wed, 28 Nov 2012 12:04:29 +0100 Subject: [PATCH] Try to fix Visual Studio compiler warning. Related to commit 119ab519a4403099cff027bfb75a7f88d7bd95fa. --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index b296f2165..60673fad7 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -4382,7 +4382,7 @@ bool Tokenizer::simplifyConstTernaryOp() !Token::Match(tok->tokAt(-4), "<|=|,|(|[|{|}|;|case|return ( %bool%|%num% )")) 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))) continue;