From: Gabe Black Date: Mon, 8 Oct 2007 01:12:10 +0000 (-0700) Subject: BitUnion: Fix some types in the bitunion classes. X-Git-Tag: m5_2.0_beta4~64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d53552355b35d68eaafa662e2ba8f917dd4bc08b;p=gem5.git BitUnion: Fix some types in the bitunion classes. --HG-- extra : convert_revision : 1c003f9fc9ef3a57c9199d692d172e747581f383 --- diff --git a/src/base/bitunion.hh b/src/base/bitunion.hh index c02ca6155..7f7b06966 100644 --- a/src/base/bitunion.hh +++ b/src/base/bitunion.hh @@ -193,7 +193,7 @@ namespace BitfieldBackend class BitUnionOperators : public Base { public: - BitUnionOperators(Type & _data) + BitUnionOperators(Type const & _data) { Base::__data = _data; } @@ -206,20 +206,20 @@ namespace BitfieldBackend } Type - operator=(const Type & _data) + operator=(Type const & _data) { Base::__data = _data; return _data; } bool - operator<(const Base & base) const + operator<(Base const & base) const { return Base::__data < base.__data; } bool - operator==(const Base & base) const + operator==(Base const & base) const { return Base::__data == base.__data; }