diff options
-rw-r--r-- | support/ChangeLog | 6 | ||||
-rw-r--r-- | support/dfa.c | 2 |
2 files changed, 7 insertions, 1 deletions
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)) |