Fix violation of <stdbool.h> replacement in regex.
authorEric Blake <ebb9@byu.net>
Thu, 15 May 2008 20:37:29 +0000 (14:37 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 15 May 2008 20:37:29 +0000 (14:37 -0600)
* lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/regcomp.c

index 2e4d5872370ce26728aa4a186e91a2a489be6550..04ee46e7f3ae4fc519cdca8c0b921737ae4580a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-15  Eric Blake  <ebb9@byu.net>
+
+       Fix violation of <stdbool.h> replacement in regex.
+       * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
+       Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
+
 2008-05-15  Jim Meyering  <meyering@redhat.com>
 
        avoid distracting test output when git or cvs is not fount
@@ -69,7 +75,7 @@
        * lib/xmalloc.c (xmemdup0): Likewise.
 
 2008-05-13  Eric Blake  <ebb9@byu.net>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        Reduce number of forks required during autoconf.
        * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
index dc15666503622c57f1821033805f472dec13899e..a3a745db863b2fe77048b36c1a68d0050b0a9938 100644 (file)
@@ -1,5 +1,5 @@
 /* Extended regular expression matching and search library.
-   Copyright (C) 2002,2003,2004,2005,2006,2007 Free Software Foundation, Inc.
+   Copyright (C) 2002,2003,2004,2005,2006,2007,2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
 
@@ -776,7 +776,7 @@ re_compile_internal (regex_t *preg, const char * pattern, size_t length,
   __libc_lock_init (dfa->lock);
 
   err = re_string_construct (&regexp, pattern, length, preg->translate,
-                            syntax & RE_ICASE, dfa);
+                            (syntax & RE_ICASE) != 0, dfa);
   if (BE (err != REG_NOERROR, 0))
     {
     re_compile_internal_free_return: