4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-02 21:15:27 +08:00

Cygwin: serial: fix GCC warning

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2020-03-26 14:13:37 +01:00 committed by Ken Brown
parent 7c84adcc2e
commit f2b68dd7de

View 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);
}