diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2023-10-13 08:33:34 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2023-10-13 08:33:34 +0300 |
commit | f4f0b0dd085ee82bfca2d761caeb07a9a5ba8d2c (patch) | |
tree | f6360f6c8453a26274789e62e7c3889e89437dee | |
parent | fa355f3eb97cdd89a525d61e4b4118a27fff26f7 (diff) | |
download | one-true-awk-f4f0b0dd085ee82bfca2d761caeb07a9a5ba8d2c.tar.gz |
Two small fixes.
-rw-r--r-- | b.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |