diff options
author | chriseth <c@ethdev.com> | 2015-06-05 17:15:09 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-05 17:15:09 +0800 |
commit | 4987eec3d1e87868e091850d31af58e054ab5ee5 (patch) | |
tree | 719dce1d8670f07b8fc0adc752f4304664646031 /AST.cpp | |
parent | 3d0807a9fa2cf26fc750b3eed35036602946ead4 (diff) | |
parent | a8505e598f6a72f3c823068f4ea3320810906835 (diff) | |
download | dexon-solidity-4987eec3d1e87868e091850d31af58e054ab5ee5.tar dexon-solidity-4987eec3d1e87868e091850d31af58e054ab5ee5.tar.gz dexon-solidity-4987eec3d1e87868e091850d31af58e054ab5ee5.tar.bz2 dexon-solidity-4987eec3d1e87868e091850d31af58e054ab5ee5.tar.lz dexon-solidity-4987eec3d1e87868e091850d31af58e054ab5ee5.tar.xz dexon-solidity-4987eec3d1e87868e091850d31af58e054ab5ee5.tar.zst dexon-solidity-4987eec3d1e87868e091850d31af58e054ab5ee5.zip |
Merge pull request #2074 from LianaHus/sol_PosIntegerLiteralsConversation
Solidity Positive integer literals conversion to signed if in value range.
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -686,9 +686,14 @@ void Expression::expectType(Type const& _expectedType) checkTypeRequirements(nullptr); Type const& type = *getType(); if (!type.isImplicitlyConvertibleTo(_expectedType)) - BOOST_THROW_EXCEPTION(createTypeError("Type " + type.toString() + - " not implicitly convertible to expected type " - + _expectedType.toString() + ".")); + BOOST_THROW_EXCEPTION(createTypeError( + "Type " + + type.toString() + + " is not implicitly convertible to expected type " + + _expectedType.toString() + + "." + ) + ); } void Expression::requireLValue() |