diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-07 02:22:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-07 02:22:58 +0000 |
commit | 6cce721b15c6ac75e7d6ae86a4354aa02bcf14d8 (patch) | |
tree | a7538e4b61839375dabaee0d9647d30befe04ac6 /winsup/cygwin/fhandler.cc | |
parent | 46645f9c6efc9009d7bada23d7ae5f03e6ed8bd3 (diff) | |
download | cygnal-6cce721b15c6ac75e7d6ae86a4354aa02bcf14d8.tar.gz cygnal-6cce721b15c6ac75e7d6ae86a4354aa02bcf14d8.tar.bz2 cygnal-6cce721b15c6ac75e7d6ae86a4354aa02bcf14d8.zip |
Remove left coercion throughout.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 453eda4ae..1310a5ca0 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -258,7 +258,7 @@ fhandler_base::set_flags (int flags, int supplied_bin) void fhandler_base::raw_read (void *ptr, size_t& ulen) { -#define bytes_read ((ssize_t) ulen) +#define bytes_read ulen HANDLE h = NULL; /* grumble */ int prio = 0; /* ditto */ @@ -304,13 +304,13 @@ fhandler_base::raw_read (void *ptr, size_t& ulen) if (openflags & O_DIROPEN) { set_errno (EISDIR); - bytes_read = -1; + bytes_read = (size_t) -1; break; } default: syscall_printf ("ReadFile %s failed, %E", unix_path_name); __seterrno_from_win_error (errcode); - bytes_read = -1; + bytes_read = (size_t) -1; break; } } |