| Index: src/types.h
|
| diff --git a/src/types.h b/src/types.h
|
| index b5bfbcfdf799bf6e2a5704b31f55e9e7a4b1b5d9..7d4f6d577ad2811e94b395979ec26fe2cc191a83 100644
|
| --- a/src/types.h
|
| +++ b/src/types.h
|
| @@ -485,7 +485,7 @@ class TypeImpl : public Config::Base {
|
|
|
| template<class Config>
|
| class TypeImpl<Config>::BitsetType : public TypeImpl<Config> {
|
| - protected:
|
| + public: // protected:
|
| friend class TypeImpl<Config>;
|
|
|
| enum {
|
| @@ -497,9 +497,7 @@ class TypeImpl<Config>::BitsetType : public TypeImpl<Config> {
|
|
|
| bitset Bitset() { return Config::as_bitset(this); }
|
|
|
| - static TypeImpl* New(bitset bits) {
|
| - return static_cast<BitsetType*>(Config::from_bitset(bits));
|
| - }
|
| + static TypeImpl* New(bitset bits) { return Config::from_bitset(bits); }
|
| static TypeHandle New(bitset bits, Region* region) {
|
| return Config::from_bitset(bits, region);
|
| }
|
|
|