diff --git a/lib/checkother.cpp b/lib/checkother.cpp index a5e3e2f38..201c8c6e4 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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"))