diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-22 03:55:44 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-22 03:55:44 +0000 |
commit | ee1b5c4320dad2abea05838d6e6cef3c1e3529b3 (patch) | |
tree | 707249111b8db4ccc1ae221422b9d45f0eead8a0 /libiberty | |
parent | 00bb4a78ee6b5610dd4134eebd80962f699356fd (diff) | |
download | gcc-ee1b5c4320dad2abea05838d6e6cef3c1e3529b3.tar.gz |
* regex.c (regcomp): Change type of `i' from unsigned to int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102270 138bc75d-0d04-0410-961f-82ee72b054a4
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 8bd0ce01c6e..9509f89953d 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 951f2d10f33..fa1df197ce9 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; |