From 9d1e72a175495da5e6fb65582909169fd4b8a4a3 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 30 Sep 2002 02:51:22 +0000 Subject: * environ.cc (environ_init): Avoid a compiler warning. * path.cc (path_conv::check): Ditto. * path.h (path_conv::operator int): Ditto. * regex/engine.c: Ditto throughout. * regex/regcomp.c: Ditto throughout. * regex/regexec.c: Ditto throughout. --- winsup/cygwin/regex/regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/regex/regexec.c') diff --git a/winsup/cygwin/regex/regexec.c b/winsup/cygwin/regex/regexec.c index 5ab72e00e..35b99c272 100644 --- a/winsup/cygwin/regex/regexec.c +++ b/winsup/cygwin/regex/regexec.c @@ -134,7 +134,7 @@ int eflags; return(REG_BADPAT); eflags = GOODFLAGS(eflags); - if (g->nstates <= CHAR_BIT*sizeof(states1) && !(eflags®_LARGE)) + if ((unsigned) g->nstates <= CHAR_BIT*sizeof(states1) && !(eflags®_LARGE)) return(smatcher(g, (char *)string, nmatch, pmatch, eflags)); else return(lmatcher(g, (char *)string, nmatch, pmatch, eflags)); -- cgit v1.2.3