From f943749dcd68ad07085f76d5dbf722e368b1a6e4 Mon Sep 17 00:00:00 2001 From: "Daniel C. Sobral" Date: Thu, 6 Jul 2000 06:37:30 +0000 Subject: [PATCH] I hate signed chars.^W^W^W^W^WCast to unsigned char before using signed chars as array indices. --- lib/libc/regex/regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index 30d1b01f9cf..e943374c9c4 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; } /*