Skip to content
Snippets Groups Projects
Commit de8c31f2 authored by Le Quang Anh's avatar Le Quang Anh
Browse files

Fix bug in code for mask

These errors are shown when compiled in debug mode.
parent f7dee0dd
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ namespace hpp {
inline std::vector<bool> boolOr(std::vector<bool> mask1,
std::vector<bool> mask2)
{
assert(mask1.size() == mask2.size() == 6);
assert(mask1.size() == 6 && mask2.size() == 6);
std::vector<bool> res(mask1.size());
for (std::size_t i = 0; i < 6; ++i) {
res[i] = mask1[i] || mask2[i];
......@@ -141,7 +141,7 @@ namespace hpp {
void Handle::maskComp (const std::vector<bool>& mask)
{
assert(maskComp.size() == 6);
assert(maskComp_.size() == 6);
maskComp_ = mask;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment