diff options
author | Gav Wood <g@ethdev.com> | 2015-08-11 02:25:03 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-08-11 02:25:03 +0800 |
commit | 068d8d0f4563642ed39aa738ad410deb3a189333 (patch) | |
tree | 6196b263f57e885cd32cd31c2fcaca58f406a067 /Types.cpp | |
parent | 2a9c650c9e244441a399d53f23198f8a8a754ebf (diff) | |
parent | b1563878b68ddd4eb8c2ed21aa33b555dbbee8cd (diff) | |
download | dexon-solidity-068d8d0f4563642ed39aa738ad410deb3a189333.tar dexon-solidity-068d8d0f4563642ed39aa738ad410deb3a189333.tar.gz dexon-solidity-068d8d0f4563642ed39aa738ad410deb3a189333.tar.bz2 dexon-solidity-068d8d0f4563642ed39aa738ad410deb3a189333.tar.lz dexon-solidity-068d8d0f4563642ed39aa738ad410deb3a189333.tar.xz dexon-solidity-068d8d0f4563642ed39aa738ad410deb3a189333.tar.zst dexon-solidity-068d8d0f4563642ed39aa738ad410deb3a189333.zip |
Merge pull request #2734 from chriseth/sol_fixOperators
Disallow some binary operators.
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |