Revert "Use char instead of int for FSA rule input"

This reverts commit eb22abfb1b.
This commit is contained in:
2024-10-27 13:55:12 +00:00
parent d5b40f9324
commit d4b7a0a25c
2 changed files with 10 additions and 4 deletions

View File

@@ -47,10 +47,11 @@ int fsa_add_state(fsa_t *fsa)
return fsa->count++;
}
void fsa_add_rule(fsa_t *fsa, int from, int to, char input)
void fsa_add_rule(fsa_t *fsa, int from, int to, int input)
{
assert(fsa->count > from);
assert(fsa->count > to);
assert(input < ALPHABET_SIZE);
fsa_state_t *state = &fsa->states[from];
if (state->count >= state->capacity) {