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:
parent
7c84adcc2e
commit
f2b68dd7de
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user