=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/awk/b.c,v retrieving revision 1.51 retrieving revision 1.52 diff -c -r1.51 -r1.52 *** src/usr.bin/awk/b.c 2024/04/25 18:33:53 1.51 --- src/usr.bin/awk/b.c 2024/05/04 22:59:21 1.52 *************** *** 1,4 **** ! /* $OpenBSD: b.c,v 1.51 2024/04/25 18:33:53 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved --- 1,4 ---- ! /* $OpenBSD: b.c,v 1.52 2024/05/04 22:59:21 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved *************** *** 651,657 **** f->gototab[state].entries[0].state = val; f->gototab[state].inuse++; return val; ! } else if (ch > f->gototab[state].entries[f->gototab[state].inuse-1].ch) { // not seen yet, insert and return gtt *tab = & f->gototab[state]; if (tab->inuse + 1 >= tab->allocated) --- 651,657 ---- f->gototab[state].entries[0].state = val; f->gototab[state].inuse++; return val; ! } else if ((unsigned)ch > f->gototab[state].entries[f->gototab[state].inuse-1].ch) { // not seen yet, insert and return gtt *tab = & f->gototab[state]; if (tab->inuse + 1 >= tab->allocated) *************** *** 875,881 **** * Call u8_rune with at least awk_mb_cur_max ahead in * the buffer until EOF interferes. */ ! if (k - j < awk_mb_cur_max) { if (k + awk_mb_cur_max > buf + bufsize) { char *obuf = buf; adjbuf(&buf, &bufsize, --- 875,881 ---- * Call u8_rune with at least awk_mb_cur_max ahead in * the buffer until EOF interferes. */ ! if (k - j < (int)awk_mb_cur_max) { if (k + awk_mb_cur_max > buf + bufsize) { char *obuf = buf; adjbuf(&buf, &bufsize,