Fixed two visual studio warnings

This commit is contained in:
PKEuS 2014-03-24 18:14:23 +01:00
parent 9b4b90f6a0
commit 5083dd4273
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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())