summaryrefslogtreecommitdiffstats
path: root/libiberty/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r--libiberty/regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/regex.c b/libiberty/regex.c
index 951f2d10f3..fa1df197ce 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;
OpenPOWER on IntegriCloud