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:
parent
630e90b9cc
commit
279bfa00bd
5 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue