diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/bitunion.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/base/bitunion.hh b/src/base/bitunion.hh index c4b67b073..35448ed24 100644 --- a/src/base/bitunion.hh +++ b/src/base/bitunion.hh @@ -89,7 +89,7 @@ namespace BitfieldBackend "Bitfield ranges must be specified as <msb, lsb>"); public: - operator const uint64_t () const + operator uint64_t () const { return this->getBits(first, last); } @@ -129,7 +129,7 @@ namespace BitfieldBackend class BitfieldWO : public Bitfield<first, last> { private: - operator const uint64_t () const; + operator uint64_t () const; public: using Bitfield<first, last>::operator=; @@ -148,7 +148,7 @@ namespace BitfieldBackend class SignedBitfield : public BitfieldBase<Type> { public: - operator const int64_t () const + operator int64_t () const { return sext<first - last + 1>(this->getBits(first, last)); } @@ -188,7 +188,7 @@ namespace BitfieldBackend class SignedBitfieldWO : public SignedBitfield<first, last> { private: - operator const int64_t () const; + operator int64_t () const; public: using SignedBitfield<first, last>::operator=; @@ -304,10 +304,10 @@ namespace BitfieldBackend //do so. #define EndSubBitUnion(name) \ }; \ - inline operator const __DataType () const \ + inline operator __DataType () const \ { return __data; } \ \ - inline const __DataType operator = (const __DataType & _data) \ + inline __DataType operator = (const __DataType & _data) \ { return __data = _data;} \ } name; |