Fixed two visual studio warnings
This commit is contained in:
parent
9b4b90f6a0
commit
5083dd4273
|
@ -48,7 +48,7 @@ static bool astIsFloat(const Token *tok, bool unknown)
|
|||
if (!tok->variable())
|
||||
return unknown;
|
||||
|
||||
return Token::findmatch(tok->variable()->typeStartToken(), "float|double", tok->variable()->typeEndToken()->next(), 0);
|
||||
return Token::findmatch(tok->variable()->typeStartToken(), "float|double", tok->variable()->typeEndToken()->next(), 0) != nullptr;
|
||||
}
|
||||
|
||||
return unknown;
|
||||
|
|
|
@ -1264,7 +1264,7 @@ std::string Token::astStringVerbose(const unsigned int indent1, const unsigned i
|
|||
|
||||
void Token::printValueFlow() const
|
||||
{
|
||||
int line = -1;
|
||||
unsigned int line = 0;
|
||||
std::cout << "\n\n##Value flow" << std::endl;
|
||||
for (const Token *tok = this; tok; tok = tok->next()) {
|
||||
if (tok->values.empty())
|
||||
|
|
Loading…
Reference in New Issue