public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: serial: fix GCC warning
@ 2020-03-26 13:13 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-03-26 13:13 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d2e0b65a7fdc78ed39a8d5338a36cb887805a601
commit d2e0b65a7fdc78ed39a8d5338a36cb887805a601
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Mar 26 14:13:37 2020 +0100
Cygwin: serial: fix GCC warning
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/fhandler_serial.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc
index 9446315e5..1aaeedf1f 100644
--- a/winsup/cygwin/fhandler_serial.cc
+++ b/winsup/cygwin/fhandler_serial.cc
@@ -80,7 +80,7 @@ fhandler_serial::raw_read (void *ptr, size_t& ulen)
/* If the number of chars in the inbound queue is sufficent
(minchars defines the minimum), set bytes_to_read accordingly
and don't wait. */
- if (st.cbInQue && st.cbInQue >= minchars)
+ if (st.cbInQue && (ssize_t) st.cbInQue >= minchars)
bytes_to_read = MIN (st.cbInQue, bytes_to_read);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-26 13:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 13:13 [newlib-cygwin] Cygwin: serial: fix GCC warning 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).