summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Sema/SemaExpr.cpp b/clang/Sema/SemaExpr.cpp
index 0747bbc8b1c..1ddbccb7e90 100644
--- a/clang/Sema/SemaExpr.cpp
+++ b/clang/Sema/SemaExpr.cpp
@@ -1162,7 +1162,7 @@ inline QualType Sema::CheckCompareOperands( // C99 6.5.8
if (lType->isRealType() && rType->isRealType())
return Context.IntTy;
} else {
- if (lType->isRealType() && rType->isRealType())
+ if (lType->isFloatingType() && rType->isFloatingType())
Diag(loc, diag::warn_floatingpoint_eq);
if (lType->isArithmeticType() && rType->isArithmeticType())
OpenPOWER on IntegriCloud