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

From-SVN: r102270
This commit is contained in:
Ben Elliston 2005-07-22 13:55:44 +10:00 committed by Ben Elliston
parent b49ceb450f
commit 8cfb7ab7a2
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
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:

View File

@ -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;