Skip to content
Snippets Groups Projects
Commit 8381d826 authored by ilor's avatar ilor
Browse files

fix typo-bug in Tag::get_masked

parent a519febc
Branches
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment