diff options
author | Christian <c@ethdev.com> | 2014-11-05 04:29:36 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-11-06 09:36:39 +0800 |
commit | 95d2edfbac4dff62ac987a9fe0fc58fbce76e5b7 (patch) | |
tree | 1653e65dfdb4530985214f54cc0c72dc32cdb69a /ExpressionCompiler.h | |
parent | 13baaf98b8a3ca2a97c96e5a25398a0cae26e5fb (diff) | |
download | dexon-solidity-95d2edfbac4dff62ac987a9fe0fc58fbce76e5b7.tar.gz dexon-solidity-95d2edfbac4dff62ac987a9fe0fc58fbce76e5b7.tar.zst dexon-solidity-95d2edfbac4dff62ac987a9fe0fc58fbce76e5b7.zip |
Type promotion fixes and tests.
Diffstat (limited to 'ExpressionCompiler.h')
-rw-r--r-- | ExpressionCompiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ExpressionCompiler.h b/ExpressionCompiler.h index 7c731ec7..d67814be 100644 --- a/ExpressionCompiler.h +++ b/ExpressionCompiler.h @@ -66,7 +66,9 @@ private: /// Appends an implicit or explicit type conversion. For now this comprises only erasing /// higher-order bits (@see appendHighBitCleanup) when widening integer types. - void appendTypeConversion(Type const& _typeOnStack, Type const& _targetType); + /// If @a _cleanupNeeded, high order bits cleanup is also done if no type conversion would be + /// necessary. + void appendTypeConversion(Type const& _typeOnStack, Type const& _targetType, bool _cleanupNeeded = false); //// Appends code that cleans higher-order bits for integer types. void appendHighBitsCleanup(IntegerType const& _typeOnStack); |