From: Bruno Haible Date: Fri, 24 Jul 2020 12:25:30 +0000 (+0200) Subject: dfa: Revert breaking gawk. X-Git-Tag: v1.0~3870 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7ea899a94365ece6367515a7e61452d9d2e61730;p=gnulib.git dfa: Revert breaking gawk. Reported by Arnold Robbins . * lib/dfa.c (compare): Don't reference the _GL_CMP macro. --- diff --git a/ChangeLog b/ChangeLog index 3203040d0f..23e8099821 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-07-24 Bruno Haible + + dfa: Revert breaking gawk. + Reported by Arnold Robbins . + * lib/dfa.c (compare): Don't reference the _GL_CMP macro. + 2020-07-23 Bruno Haible Optimize three-valued comparison between integers. diff --git a/lib/dfa.c b/lib/dfa.c index 1d2d404574..e79d882d76 100644 --- a/lib/dfa.c +++ b/lib/dfa.c @@ -2466,7 +2466,7 @@ static int compare (const void *a, const void *b) { position const *p = a, *q = b; - return _GL_CMP (p->index, q->index); + return (p->index > q->index) - (p->index < q->index); } static void