From 7ea899a94365ece6367515a7e61452d9d2e61730 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 24 Jul 2020 14:25:30 +0200 Subject: [PATCH] dfa: Revert breaking gawk. Reported by Arnold Robbins . * lib/dfa.c (compare): Don't reference the _GL_CMP macro. --- ChangeLog | 6 ++++++ lib/dfa.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5