diff --git a/redGrapes/util/bitfield.hpp b/redGrapes/util/bitfield.hpp index 51159ff0..cd06a90e 100644 --- a/redGrapes/util/bitfield.hpp +++ b/redGrapes/util/bitfield.hpp @@ -60,7 +60,7 @@ struct AtomicBitfield inline bool get( unsigned idx ) { __INDEX_CALC(idx,chunk_idx,k,mask) - state[chunk_idx] & mask; + return state[chunk_idx] & mask; } /* searches for a bit which is of state `expected_value`