gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4388-g0d4519f6


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4388-g0d4519f6
Date: Wed, 6 Apr 2022 13:06:08 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-5.1-stable has been updated
       via  0d4519f6aa19e7529f1b203cf1584a872b4011aa (commit)
      from  1c51faed4fd14db4a39729640bdf3a381d680f9e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=0d4519f6aa19e7529f1b203cf1584a872b4011aa

commit 0d4519f6aa19e7529f1b203cf1584a872b4011aa
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Wed Apr 6 20:02:36 2022 +0300

    Small fix in dfa.c.

diff --git a/support/ChangeLog b/support/ChangeLog
index 57603648..86d7baee 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,9 @@
+2022-04-06         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * dfa.c (parse_bracket_exp): Use && instead of & in logical test.
+       Thanks to David Binderman <dcb314@hotmail.com> for the report,
+       courtesy of clang 14.
+
 2022-03-25         Arnold D. Robbins     <arnold@skeeve.com>
 
        * cdefs.h, regex_internal.c, regexec.c: Sync with GNULIB.
diff --git a/support/dfa.c b/support/dfa.c
index a27d096f..45adb80f 100644
--- a/support/dfa.c
+++ b/support/dfa.c
@@ -1090,7 +1090,7 @@ parse_bracket_exp (struct dfa *dfa)
               if (wc != wc2 || wc == WEOF)
                 {
                   if (dfa->localeinfo.simple
-                      || (isasciidigit (c) & isasciidigit (c2)))
+                      || (isasciidigit (c) && isasciidigit (c2)))
                     {
                       for (int ci = c; ci <= c2; ci++)
                         if (dfa->syntax.case_fold && isalpha (ci))

-----------------------------------------------------------------------

Summary of changes:
 support/ChangeLog | 6 ++++++
 support/dfa.c     | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]