diff options
author | dcs <dcs@FreeBSD.org> | 2000-07-06 06:37:30 +0000 |
---|---|---|
committer | dcs <dcs@FreeBSD.org> | 2000-07-06 06:37:30 +0000 |
commit | e71baf238347f693e21bd2809bc3954cc985dd43 (patch) | |
tree | 2f458d84fe6472693c156849c91432c0e86d2d4c /lib/libc/regex/regcomp.c | |
parent | 2d066a2d8390bd0c92dbf1a6ca165d782d3d95a3 (diff) | |
download | FreeBSD-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/regcomp.c')
-rw-r--r-- | lib/libc/regex/regcomp.c | 2 |
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; } /* |