summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.h
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/path.h
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/path.h')
-rw-r--r--winsup/cygwin/path.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index c8bb7cead..9d8291a59 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -146,7 +146,7 @@ class path_conv
operator char *() {return path;}
operator const char *() {return path;}
operator DWORD &() {return fileattr;}
- operator int &() {return (int) fileattr; }
+ operator int () {return fileattr; }
char operator [](int i) const {return path[i];}
BOOL is_device () {return devn != FH_BAD && devn != FH_DISK;}
DWORD get_devn () {return devn == FH_BAD ? (DWORD) FH_DISK : devn;}