diff --git a/libcorpus2/tag.h b/libcorpus2/tag.h index 6fc8f8c1dabd97c1d8766a5e3aaf1cb810d2d2a1..d11e676f3d732c6eeb1619cd0b6f593f23868d9b 100644 --- a/libcorpus2/tag.h +++ b/libcorpus2/tag.h @@ -90,8 +90,7 @@ public: values_ |= v; } - void add_values_masked(mask_t value, mask_t mask) - { + void add_values_masked(mask_t value, mask_t mask) { //values_ = (values_ & ~mask) | (value & mask); //see http://graphics.stanford.edu/~seander/bithacks.html#MaskedMerge values_ = values_ ^ ((values_ ^ value) & mask); @@ -116,7 +115,7 @@ public: Tag get_masked(const Tag& other) const { Tag t(*this); - return t.get_masked(other); + return t.mask_with(other); } /// debug aid, dump the tag's internal numeric representation