aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-02-09 07:14:13 +0800
committerchriseth <c@ethdev.com>2015-02-09 07:14:13 +0800
commita66db516fb1025b406c8fcdb694b7fb760f84695 (patch)
tree269aaf7b54e7e75fc0c76854502926b366b22e44 /Types.cpp
parent5c58aa041d06e7e640f12c0060d18947ac5e8952 (diff)
parentafe1d9a592446dd403b9ed349529098b71309756 (diff)
downloaddexon-solidity-a66db516fb1025b406c8fcdb694b7fb760f84695.tar.gz
dexon-solidity-a66db516fb1025b406c8fcdb694b7fb760f84695.tar.zst
dexon-solidity-a66db516fb1025b406c8fcdb694b7fb760f84695.zip
Merge pull request #937 from LefterisJP/sol_MultiArgSHA3
Solidity multiple arg sha3
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Types.cpp b/Types.cpp
index e6f1e8e1..7a7672c6 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -357,6 +357,13 @@ u256 IntegerConstantType::literalValue(Literal const*) const
return value;
}
+TypePointer IntegerConstantType::getRealType() const
+{
+ auto intType = getIntegerType();
+ solAssert(!!intType, std::string("getRealType called with invalid integer constant") + toString());
+ return intType;
+}
+
shared_ptr<IntegerType const> IntegerConstantType::getIntegerType() const
{
bigint value = m_value;