fix some g++-snapshot warnings

* spot/twaalgos/couvreurnew.cc: explicit operator bool is not used by
return.
This commit is contained in:
Alexandre Duret-Lutz 2017-11-11 08:45:29 +01:00
parent 7c8d52640e
commit a55801c223

View file

@ -613,14 +613,14 @@ namespace spot
} }
// Handy cast operators. // Handy cast operators.
// Note that a pointer can be cast to a Boolean as usual.
operator bool() const operator bool() const
{ {
if (tag == BOOL) if (tag == BOOL)
return res; return res;
else else
return ecr; return !!ecr;
} }
operator emptiness_check_result_ptr() const operator emptiness_check_result_ptr() const
{ {
if (tag == PTR) if (tag == PTR)