Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
60c8b999
Commit
60c8b999
authored
14 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
remove assert from add_values_masked to allow clearing an attribute
parent
fc80fd1f
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcorpus2/tag.h
+3
-2
3 additions, 2 deletions
libcorpus2/tag.h
with
3 additions
and
2 deletions
libcorpus2/tag.h
+
3
−
2
View file @
60c8b999
...
...
@@ -92,8 +92,9 @@ public:
void
add_values_masked
(
mask_t
value
,
mask_t
mask
)
{
assert
(
mask
&
value
);
values_
=
(
values_
&
~
mask
)
|
value
;
//values_ = (values_ & ~mask) | (value & mask);
//see http://graphics.stanford.edu/~seander/bithacks.html#MaskedMerge
values_
=
values_
^
((
values_
^
value
)
&
mask
);
}
Tag
&
combine_with
(
const
Tag
&
other
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment