fpi-ssm: Also bug-on negative state value

Being an integer, anything could happen.
This commit is contained in:
Marco Trevisan (Treviño) 2019-11-22 18:03:08 +01:00
parent 20a52593eb
commit 0241617713

View file

@ -317,7 +317,7 @@ void
fpi_ssm_jump_to_state (FpiSsm *machine, int state)
{
BUG_ON (machine->completed);
BUG_ON (state >= machine->nr_states);
BUG_ON (state < 0 || state >= machine->nr_states);
machine->cur_state = state;
__ssm_call_handler (machine);
}