diff options
author | hydai <z54981220@gmail.com> | 2018-11-29 16:34:17 +0800 |
---|---|---|
committer | hydai <z54981220@gmail.com> | 2018-11-29 17:07:18 +0800 |
commit | 9326adc3db513353da51d9732d1c92b33ecd4d16 (patch) | |
tree | acc49affdc911984d67a37fe7e61c8bc4bca94c6 /libsolidity/ast | |
parent | b4086ac87037813eb553e92839bbc40de6bbd9ac (diff) | |
download | dexon-solidity-9326adc3db513353da51d9732d1c92b33ecd4d16.tar.gz dexon-solidity-9326adc3db513353da51d9732d1c92b33ecd4d16.tar.zst dexon-solidity-9326adc3db513353da51d9732d1c92b33ecd4d16.zip |
Replace IntegerType(256) with static function IntegerType::uint256()
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.h | 2 |
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); |