mirror of git://gcc.gnu.org/git/gcc.git
* regex.c (regcomp): Change type of `i' from unsigned to int.
From-SVN: r102270
This commit is contained in:
parent
b49ceb450f
commit
8cfb7ab7a2
|
@ -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>
|
2005-07-22 Ben Elliston <bje@gnu.org>
|
||||||
|
|
||||||
Recover patch lost in the sourceware repository:
|
Recover patch lost in the sourceware repository:
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
/* 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;
|
||||||
|
|
Loading…
Reference in New Issue