From d2e0b65a7fdc78ed39a8d5338a36cb887805a601 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 26 Mar 2020 14:13:37 +0100 Subject: [PATCH] Cygwin: serial: fix GCC warning Signed-off-by: Corinna Vinschen --- 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); } -- 2.43.5