Replace IntegerType(256) with static function IntegerType::uint256()

This commit is contained in:
hydai
2018-11-29 17:07:18 +08:00
parent b4086ac870
commit 9326adc3db
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);