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
parent 6295d75913
commit d2e0b65a7f
1 changed files with 1 additions and 1 deletions

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