Cygwin: serial: fix GCC warning
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
6295d75913
commit
d2e0b65a7f
@ -80,7 +80,7 @@ fhandler_serial::raw_read (void *ptr, size_t& ulen)
|
|||||||
/* If the number of chars in the inbound queue is sufficent
|
/* If the number of chars in the inbound queue is sufficent
|
||||||
(minchars defines the minimum), set bytes_to_read accordingly
|
(minchars defines the minimum), set bytes_to_read accordingly
|
||||||
and don't wait. */
|
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);
|
bytes_to_read = MIN (st.cbInQue, bytes_to_read);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user