diff options
author | DJ Delorie <dj@redhat.com> | 2005-07-22 04:28:52 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-07-22 04:28:52 +0000 |
commit | 6038baea6ceeaf77619158be787d34ba1bf005ed (patch) | |
tree | ab0c41ee96c1d0fc8d5336fc67d48123c2dcd5cd /libiberty/regex.c | |
parent | c750388a853ceb9e4ca75c7381c1e3d109fcaeec (diff) | |
download | gdb-6038baea6ceeaf77619158be787d34ba1bf005ed.zip gdb-6038baea6ceeaf77619158be787d34ba1bf005ed.tar.gz gdb-6038baea6ceeaf77619158be787d34ba1bf005ed.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r-- | libiberty/regex.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |