summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/regex/regexec.c
diff options
context:
space:
mode:
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));