aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Types.cpp b/Types.cpp
index 6a8d33dc..bda68356 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -313,6 +313,8 @@ TypePointer IntegerType::binaryOperatorResult(Token::Value _operator, TypePointe
// All integer types can be compared
if (Token::isCompareOp(_operator))
return commonType;
+ if (Token::isBooleanOp(_operator))
+ return TypePointer();
// Nothing else can be done with addresses
if (commonType->isAddress())
return TypePointer();