diff options
author | Christopher Faylor <me@cgf.cx> | 2002-09-30 02:51:22 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-09-30 02:51:22 +0000 |
commit | 9d1e72a175495da5e6fb65582909169fd4b8a4a3 (patch) | |
tree | e1dafddbbc31cce15fb5c0596941c8fda4f2e7e0 /winsup/cygwin/regex | |
parent | 79ed43004f82508fc5b75e5eaf2f890cd63ad1fc (diff) | |
download | newlib-9d1e72a175495da5e6fb65582909169fd4b8a4a3.zip newlib-9d1e72a175495da5e6fb65582909169fd4b8a4a3.tar.gz newlib-9d1e72a175495da5e6fb65582909169fd4b8a4a3.tar.bz2 |
* 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')
-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 919fe3f..0b88dcf 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 52f9037..580c703 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 5ab72e0..35b99c2 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)); |