From fda1f02dabb2a443fb6b614f0f1095a2d4730e54 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Wed, 22 Mar 2017 19:11:40 -0400 Subject: [PATCH] long double is a floating point type. --- lib/symboldatabase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index c4771752e..da471c3ab 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -1052,7 +1052,7 @@ public: } bool isFloat() const { - return (type == ValueType::Type::FLOAT || type == ValueType::Type::DOUBLE); + return (type >= ValueType::Type::FLOAT && type <= ValueType::Type::LONGDOUBLE); } bool fromLibraryType(const std::string &typestr, const Settings *settings);