diff options
author | Ben Elliston <bje@gnu.org> | 2005-07-22 13:55:44 +1000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2005-07-22 13:55:44 +1000 |
commit | 8cfb7ab7a249449a49f251479449d8ca10ce763c (patch) | |
tree | 707249111b8db4ccc1ae221422b9d45f0eead8a0 /libiberty | |
parent | b49ceb450ff7b91d81c54741f0fc9e49ea6f5f0e (diff) | |
download | gcc-8cfb7ab7a249449a49f251479449d8ca10ce763c.zip gcc-8cfb7ab7a249449a49f251479449d8ca10ce763c.tar.gz gcc-8cfb7ab7a249449a49f251479449d8ca10ce763c.tar.bz2 |
* regex.c (regcomp): Change type of `i' from unsigned to int.
From-SVN: r102270
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/regex.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 8bd0ce0..9509f89 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,5 +1,9 @@ 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. diff --git a/libiberty/regex.c b/libiberty/regex.c index 951f2d1..fa1df19 100644 --- a/libiberty/regex.c +++ b/libiberty/regex.c @@ -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; |