2003-07-23 Christophe Bisiere (tiny change) * posix/regex.h (RE_TRANSLATE_TYPE): Define it to "unsigned char," to avoid problems at hosts with signed char. * posix/regexec.c (re_search_internal): Don't say "unsigned RE_TRANSLATE_TYPE." diff -urpN libc/posix/regex.h libc.sk/posix/regex.h --- libc/posix/regex.h Fri Jun 13 11:24:36 2003 +++ libc.sk/posix/regex.h Wed Jul 23 14:53:02 2003 @@ -329,7 +329,7 @@ typedef enum private to the regex routines. */ #ifndef RE_TRANSLATE_TYPE -# define RE_TRANSLATE_TYPE char * +# define RE_TRANSLATE_TYPE unsigned char * #endif struct re_pattern_buffer diff -urpN libc/posix/regexec.c libc.sk/posix/regexec.c --- libc/posix/regexec.c Wed Jun 18 15:06:35 2003 +++ libc.sk/posix/regexec.c Wed Jul 23 14:53:02 2003 @@ -653,8 +653,8 @@ re_search_internal (preg, string, length { if (BE (fast_translate, 1)) { - unsigned RE_TRANSLATE_TYPE t - = (unsigned RE_TRANSLATE_TYPE) preg->translate; + RE_TRANSLATE_TYPE t + = (RE_TRANSLATE_TYPE) preg->translate; if (BE (range >= 0, 1)) { if (BE (t != NULL, 0))