From 2ac907b40a1610c5d1fcfdc07c2be34c97033051 Mon Sep 17 00:00:00 2001 From: Ettl Martin Date: Mon, 27 Feb 2012 14:13:34 +0100 Subject: [PATCH] fixed compiler warning (gcc-4.6.1) --- lib/checkother.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"))