summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/regex/regexec.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-30 02:51:22 +0000
committerChristopher Faylor <me@cgf.cx>2002-09-30 02:51:22 +0000
commit9d1e72a175495da5e6fb65582909169fd4b8a4a3 (patch)
treee1dafddbbc31cce15fb5c0596941c8fda4f2e7e0 /winsup/cygwin/regex/regexec.c
parent79ed43004f82508fc5b75e5eaf2f890cd63ad1fc (diff)
downloadcygnal-9d1e72a175495da5e6fb65582909169fd4b8a4a3.tar.gz
cygnal-9d1e72a175495da5e6fb65582909169fd4b8a4a3.tar.bz2
cygnal-9d1e72a175495da5e6fb65582909169fd4b8a4a3.zip
* 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.
Diffstat (limited to 'winsup/cygwin/regex/regexec.c')
-rw-r--r--winsup/cygwin/regex/regexec.c2
1 files changed, 1 insertions, 1 deletions
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&REG_LARGE))
+ if ((unsigned) g->nstates <= CHAR_BIT*sizeof(states1) && !(eflags&REG_LARGE))
return(smatcher(g, (char *)string, nmatch, pmatch, eflags));
else
return(lmatcher(g, (char *)string, nmatch, pmatch, eflags));