summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>2000-07-06 06:37:30 +0000
committerdcs <dcs@FreeBSD.org>2000-07-06 06:37:30 +0000
commite71baf238347f693e21bd2809bc3954cc985dd43 (patch)
tree2f458d84fe6472693c156849c91432c0e86d2d4c /lib/libc/regex
parent2d066a2d8390bd0c92dbf1a6ca165d782d3d95a3 (diff)
downloadFreeBSD-src-e71baf238347f693e21bd2809bc3954cc985dd43.zip
FreeBSD-src-e71baf238347f693e21bd2809bc3954cc985dd43.tar.gz
I hate signed chars.^W^W^W^W^WCast to unsigned char before using signed
chars as array indices.
Diffstat (limited to 'lib/libc/regex')
-rw-r--r--lib/libc/regex/regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index 30d1b01..e943374 100644
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -1958,7 +1958,7 @@ struct re_guts *g;
* is the first one that would be matched).
*/
for (mindex = 0; mindex < g->mlen; mindex++)
- g->charjump[g->must[mindex]] = g->mlen - mindex - 1;
+ g->charjump[(unsigned char)g->must[mindex]] = g->mlen - mindex - 1;
}
/*
OpenPOWER on IntegriCloud