# HG changeset patch # User Chris Cannam # Date 1433938110 -3600 # Node ID 106081811ccd75a40475cd6c5ba8dee251aa63f0 # Parent 882d448c8a6da6a92202efcf7d5c68551091267a Avoid compiler warning diff -r 882d448c8a6d -r 106081811ccd base/ResizeableBitset.h --- a/base/ResizeableBitset.h Fri May 15 09:15:57 2015 +0100 +++ b/base/ResizeableBitset.h Wed Jun 10 13:08:30 2015 +0100 @@ -62,7 +62,10 @@ } void set(size_t column) { - ((*m_bits)[column >> 3]) |= uint8_t((1u << (column & 0x07)) & 0xff); + size_t ix = (column >> 3); + uint8_t prior = (*m_bits)[ix]; + uint8_t extra = ((1u << (column & 0x07)) & 0xff); + (*m_bits)[ix] = uint8_t(prior | extra); } void reset(size_t column) {