Commit 8cfb7ab7 by Ben Elliston Committed by Ben Elliston

* regex.c (regcomp): Change type of `i' from unsigned to int.

From-SVN: r102270
parent b49ceb45
2005-07-22 Ben Elliston <bje@gnu.org> 2005-07-22 Ben Elliston <bje@gnu.org>
* regex.c (regcomp): Change type of `i' from unsigned to int.
2005-07-22 Ben Elliston <bje@gnu.org>
Recover patch lost in the sourceware repository: Recover patch lost in the sourceware repository:
2005-07-09 Ben Elliston <bje@au.ibm.com> 2005-07-09 Ben Elliston <bje@au.ibm.com>
* memcpy.c: Remove ANSI_PROTOTYPES conditional code. * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
......
...@@ -7923,7 +7923,7 @@ regcomp (regex_t *preg, const char *pattern, int cflags) ...@@ -7923,7 +7923,7 @@ regcomp (regex_t *preg, const char *pattern, int cflags)
if (cflags & REG_ICASE) if (cflags & REG_ICASE)
{ {
unsigned i; int i;
preg->translate preg->translate
= (RE_TRANSLATE_TYPE) malloc (CHAR_SET_SIZE = (RE_TRANSLATE_TYPE) malloc (CHAR_SET_SIZE
...@@ -7933,7 +7933,7 @@ regcomp (regex_t *preg, const char *pattern, int cflags) ...@@ -7933,7 +7933,7 @@ regcomp (regex_t *preg, const char *pattern, int cflags)
/* Map uppercase characters to corresponding lowercase ones. */ /* Map uppercase characters to corresponding lowercase ones. */
for (i = 0; i < CHAR_SET_SIZE; i++) for (i = 0; i < CHAR_SET_SIZE; i++)
preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : (int) i; preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : i;
} }
else else
preg->translate = NULL; preg->translate = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment