Merge pull request #5538 from hydai/static_uint256

Replace IntegerType(256) with static function IntegerType::uint256()
This commit is contained in:
chriseth
2018-11-29 11:17:33 +01:00
committed by GitHub
6 changed files with 24 additions and 22 deletions
+2
View File
@@ -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);