]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: serial: fix GCC warning
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 26 Mar 2020 13:13:37 +0000 (14:13 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 26 Mar 2020 13:13:37 +0000 (14:13 +0100)
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler_serial.cc

index 9446315e50f14ec89da205f59c7dfd2e70a73822..1aaeedf1fc08eb143b4784e301bb34e6c3e17155 100644 (file)
@@ -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);
        }
 
This page took 0.033123 seconds and 5 git commands to generate.