diff options
Diffstat (limited to 'winsup/cygwin/regex')
-rw-r--r-- | winsup/cygwin/regex/engine.c | 2 | ||||
-rw-r--r-- | winsup/cygwin/regex/regcomp.c | 8 | ||||
-rw-r--r-- | winsup/cygwin/regex/regexec.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/regex/engine.c b/winsup/cygwin/regex/engine.c index 919fe3f64..0b88dcf1e 100644 --- a/winsup/cygwin/regex/engine.c +++ b/winsup/cygwin/regex/engine.c @@ -71,7 +71,7 @@ regmatch_t pmatch[]; int eflags; { register char *endp; - register int i; + register size_t i; struct match mv; register struct match *m = &mv; register char *dp; diff --git a/winsup/cygwin/regex/regcomp.c b/winsup/cygwin/regex/regcomp.c index 52f9037de..580c70328 100644 --- a/winsup/cygwin/regex/regcomp.c +++ b/winsup/cygwin/regex/regcomp.c @@ -1055,7 +1055,7 @@ freeset(p, cs) register struct parse *p; register cset *cs; { - register int i; + register size_t i; register cset *top = &p->g->sets[p->g->ncsets]; register size_t css = (size_t)p->g->csetsize; @@ -1081,7 +1081,7 @@ register struct parse *p; register cset *cs; { register uch h = cs->hash; - register int i; + register size_t i; register cset *top = &p->g->sets[p->g->ncsets]; register cset *cs2; register size_t css = (size_t)p->g->csetsize; @@ -1114,7 +1114,7 @@ firstch(p, cs) register struct parse *p; register cset *cs; { - register int i; + register size_t i; register size_t css = (size_t)p->g->csetsize; for (i = 0; i < css; i++) @@ -1133,7 +1133,7 @@ nch(p, cs) register struct parse *p; register cset *cs; { - register int i; + register size_t i; register size_t css = (size_t)p->g->csetsize; register int n = 0; 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)); |