aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2023-10-13 08:33:34 +0300
committerArnold D. Robbins <arnold@skeeve.com>2023-10-13 08:33:34 +0300
commitf4f0b0dd085ee82bfca2d761caeb07a9a5ba8d2c (patch)
treef6360f6c8453a26274789e62e7c3889e89437dee
parentfa355f3eb97cdd89a525d61e4b4118a27fff26f7 (diff)
downloadone-true-awk-f4f0b0dd085ee82bfca2d761caeb07a9a5ba8d2c.tar.gz
Two small fixes.
-rw-r--r--b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/b.c b/b.c
index ad1fd49..f6108a6 100644
--- a/b.c
+++ b/b.c
@@ -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) {
@@ -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