aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-05 17:15:09 +0800
committerchriseth <c@ethdev.com>2015-06-05 17:15:09 +0800
commit4987eec3d1e87868e091850d31af58e054ab5ee5 (patch)
tree719dce1d8670f07b8fc0adc752f4304664646031 /AST.cpp
parent3d0807a9fa2cf26fc750b3eed35036602946ead4 (diff)
parenta8505e598f6a72f3c823068f4ea3320810906835 (diff)
downloaddexon-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.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/AST.cpp b/AST.cpp
index 248abfdb..c6aebd4f 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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()