Skip to content

Commit

Permalink
Two small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoldrobbins committed Oct 13, 2023
1 parent fa355f3 commit f4f0b0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions b.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ int makeinit(fa *f, bool anchor)
}
if ((f->posns[2])[1] == f->accept)
f->out[2] = 1;
for (i = 0; i < f->gototab[2].inuse; i++)
for (i = 0; i < f->gototab[2].allocated; i++)
set_gototab(f, 2, 0, 0); /* f->gototab[2][i] = 0; */
f->curstat = cgoto(f, 2, HAT);
if (anchor) {
Expand Down Expand Up @@ -645,7 +645,7 @@ static int set_gototab(fa *f, int state, int ch, int val) /* hide gototab inplem
entry_cmp);

if (item != NULL) {
item->state = state;
item->state = val;
return item->state;
}
#endif
Expand Down

0 comments on commit f4f0b0d

Please sign in to comment.