Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
7ea94546
Commit
7ea94546
authored
Oct 20, 2016
by
Alexandre Duret-Lutz
Browse files
* spot/misc/bitvect.hh (is_subset_of): Fix implementation.
parent
a32ccd64
Changes
1
Hide whitespace changes
Inline
Side-by-side
spot/misc/bitvect.hh
View file @
7ea94546
...
...
@@ -311,7 +311,7 @@ namespace spot
const
size_t
bpb
=
8
*
sizeof
(
bitvect
::
block_t
);
size_t
rest
=
size
()
%
bpb
;
for
(
i
=
0
;
i
<
block_count_
-
!!
rest
;
++
i
)
if
((
storage_
[
i
]
&
other
.
storage_
[
i
])
!=
other
.
storage_
[
i
])
if
((
storage_
[
i
]
&
other
.
storage_
[
i
])
!=
storage_
[
i
])
return
false
;
if
(
!
rest
)
return
true
;
...
...
@@ -320,7 +320,7 @@ namespace spot
// relevant portion.
block_t
mask
=
(
1UL
<<
rest
)
-
1
;
return
((
storage_
[
i
]
&
mask
&
other
.
storage_
[
i
])
==
(
other
.
storage_
[
i
]
&
mask
));
==
(
storage_
[
i
]
&
mask
));
}
bool
operator
==
(
const
bitvect
&
other
)
const
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment