acc: fix operator| and operator&

Bug introduced in abe2c08b, visible in tests/python/product.ipynb,
and tests/python/acc_cond.ipynb.

* spot/twa/acc.hh: fix operator| and operator&.
* tests/python/acc_cond.ipynb: Adjust test case.
This commit is contained in:
Alexandre Duret-Lutz 2017-08-15 22:40:28 +02:00
parent 2e8a67027f
commit f8ef06acc6
2 changed files with 10 additions and 15 deletions

View file

@ -686,7 +686,9 @@ namespace spot
acc_code operator&(const acc_code& r)
{
return *this &= r;
acc_code res = *this;
res &= r;
return res;
}
acc_code operator&(acc_code&& r)
@ -789,9 +791,11 @@ namespace spot
return res;
}
acc_code& operator|(const acc_code& r)
acc_code operator|(const acc_code& r)
{
return *this |= r;
acc_code res = *this;
res |= r;
return res;
}
acc_code& operator<<=(unsigned sets)