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
|
|
@ -2067,9 +2067,9 @@ static void fix_initial_state(result_& r)
|
|||
// Multiple initial states. We might need to add a fake one,
|
||||
// unless one of the actual initial state has no incoming edge.
|
||||
auto& aut = r.h->aut;
|
||||
std::vector<unsigned> has_incoming(aut->num_states(), 0);
|
||||
std::vector<unsigned char> has_incoming(aut->num_states(), 0);
|
||||
for (auto& t: aut->edges())
|
||||
has_incoming[t.dst] = true;
|
||||
has_incoming[t.dst] = 1;
|
||||
|
||||
bool found = false;
|
||||
unsigned init = 0;
|
||||
|
|
|
|||
|
|
@ -425,7 +425,7 @@ namespace spot
|
|||
YY_NEW_FILE;
|
||||
hoayyreset();
|
||||
if (want_interactive)
|
||||
yy_set_interactive(true);
|
||||
yy_set_interactive(1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -461,7 +461,7 @@ namespace spot
|
|||
YY_NEW_FILE;
|
||||
hoayyreset();
|
||||
if (want_interactive)
|
||||
yy_set_interactive(true);
|
||||
yy_set_interactive(1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue