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 744362fb..3abb0b05 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -311,6 +311,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();