aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-29 18:17:33 +0800
committerGitHub <noreply@github.com>2018-11-29 18:17:33 +0800
commitf6d013237d8b20c73e198b21d652872b236e34d0 (patch)
tree9fddbd948f847164de481cfa7296cb5dc0098f23 /libsolidity/ast
parent74f70516509da9af79df345b2668a02f87c909fd (diff)
parent9326adc3db513353da51d9732d1c92b33ecd4d16 (diff)
downloaddexon-solidity-f6d013237d8b20c73e198b21d652872b236e34d0.tar
dexon-solidity-f6d013237d8b20c73e198b21d652872b236e34d0.tar.gz
dexon-solidity-f6d013237d8b20c73e198b21d652872b236e34d0.tar.bz2
dexon-solidity-f6d013237d8b20c73e198b21d652872b236e34d0.tar.lz
dexon-solidity-f6d013237d8b20c73e198b21d652872b236e34d0.tar.xz
dexon-solidity-f6d013237d8b20c73e198b21d652872b236e34d0.tar.zst
dexon-solidity-f6d013237d8b20c73e198b21d652872b236e34d0.zip
Merge pull request #5538 from hydai/static_uint256
Replace IntegerType(256) with static function IntegerType::uint256()
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/Types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.h b/libsolidity/ast/Types.h
index 953aa557..0f0548d3 100644
--- a/libsolidity/ast/Types.h
+++ b/libsolidity/ast/Types.h
@@ -374,6 +374,8 @@ public:
Unsigned, Signed
};
+ static IntegerType& uint256() { static std::shared_ptr<IntegerType> uint256(std::make_shared<IntegerType>(256)); return *uint256; }
+
Category category() const override { return Category::Integer; }
explicit IntegerType(unsigned _bits, Modifier _modifier = Modifier::Unsigned);