Fix warning

This commit is contained in:
Vinnie Falco
2013-11-05 03:22:04 -08:00
parent 55045b5fe9
commit bf87614fa6

View File

@@ -125,15 +125,15 @@ public:
operator uint8() const operator uint8() const
{ {
return ((*m_value)>>m_shift)&0xff; return ((*m_value)>>m_shift) & 0xff;
} }
template <typename IntegralType> template <typename IntegralType>
Proxy& operator= (IntegralType v) Proxy& operator= (IntegralType v)
{ {
(*m_value)= (*m_value) =
(*m_value)&(~((0xff)<<m_shift)) | ( (*m_value) & (~((0xff)<<m_shift)) )
((v&0xff)<<m_shift); | ((v&0xff) << m_shift);
return *this; return *this;
} }