acc: make mark_t::operator bool() explicit
This avoids a few conversion problems, and also made the bug of
sbacc (fixed by 37fc948be4) obvious.
Reported by Thomas Medioni.
* spot/twa/acc.hh (mark_t::operator bool): Make it explicit.
* spot/twaalgos/remfin.cc: Adjust.
This commit is contained in:
parent
37fc948be4
commit
cf5d2c2b32
3 changed files with 9 additions and 3 deletions
|
|
@ -98,7 +98,7 @@ namespace spot
|
|||
return id >= o.id;
|
||||
}
|
||||
|
||||
operator bool() const
|
||||
explicit operator bool() const
|
||||
{
|
||||
return id != 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue