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>
* 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:
2005-07-09 Ben Elliston <bje@au.ibm.com>
* memcpy.c: Remove ANSI_PROTOTYPES conditional code.
......
......@@ -7923,7 +7923,7 @@ regcomp (regex_t *preg, const char *pattern, int cflags)
if (cflags & REG_ICASE)
{
unsigned i;
int i;
preg->translate
= (RE_TRANSLATE_TYPE) malloc (CHAR_SET_SIZE
......@@ -7933,7 +7933,7 @@ regcomp (regex_t *preg, const char *pattern, int cflags)
/* Map uppercase characters to corresponding lowercase ones. */
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
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