fix some implicit promotion from bool, as suggested by PVS-Studio

For #192.

* spot/parseaut/parseaut.yy, spot/parseaut/scanaut.ll,
spot/tl/randomltl.cc, spot/twa/acc.cc, spot/twaalgos/postproc.hh: Here.
This commit is contained in:
Alexandre Duret-Lutz 2016-10-28 22:53:29 +02:00
parent 630e90b9cc
commit 279bfa00bd
5 changed files with 13 additions and 13 deletions

View file

@ -299,7 +299,7 @@ namespace spot
SPOT_UNREACHABLE();
}
SPOT_UNREACHABLE();
return false;
return 0U;
}
}
@ -532,7 +532,7 @@ namespace spot
if (max)
res = odd ? t() : f();
else
res = (sets & 1) == odd ? t() : f();
res = ((sets & 1) == odd) ? t() : f();
if (sets == 0)
return res;