public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: fifo: fix type of fifo_reader_id_t operators
@ 2020-05-08 18:00 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-05-08 18:00 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=2125ca8a69d0680ffe8079c15ef479f869ee35cc
commit 2125ca8a69d0680ffe8079c15ef479f869ee35cc
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri May 8 20:00:24 2020 +0200
Cygwin: fifo: fix type of fifo_reader_id_t operators
fifo_reader_id_t::operator == and != have been defined without type
accidentally. For some weird reason, only x86 gcc complains about
this problem, not x86_64 gcc.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/fhandler.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 8a23d6753..9a82d491a 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1308,12 +1308,12 @@ struct fifo_reader_id_t
operator bool () const { return winpid != 0 || fh != NULL; }
- friend operator == (const fifo_reader_id_t &l, const fifo_reader_id_t &r)
+ friend bool operator == (const fifo_reader_id_t &l, const fifo_reader_id_t &r)
{
return l.winpid == r.winpid && l.fh == r.fh;
}
- friend operator != (const fifo_reader_id_t &l, const fifo_reader_id_t &r)
+ friend bool operator != (const fifo_reader_id_t &l, const fifo_reader_id_t &r)
{
return l.winpid != r.winpid || l.fh != r.fh;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-08 18:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 18:00 [newlib-cygwin] Cygwin: fifo: fix type of fifo_reader_id_t operators Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).