fixed compiler warning (gcc-4.6.1)

This commit is contained in:
Ettl Martin 2012-02-27 14:13:34 +01:00
parent 013ef6157d
commit 2ac907b40a
1 changed files with 2 additions and 1 deletions

View File

@ -328,11 +328,12 @@ void CheckOther::cstyleCastError(const Token *tok)
static std::string analyzeType(const Token* tok)
{
if (tok->str() == "double")
if (tok->str() == "double"){
if (tok->isLong())
return "long double";
else
return "double";
}
if (tok->str() == "float")
return "float";
if (Token::Match(tok, "unsigned| int|long|short|char|size_t"))