Cygwin: console: Fix a bug from comparison between int and DWORD.
This commit is contained in:
parent
dea52d5c1e
commit
312dc2289c
|
@ -1274,7 +1274,7 @@ out:
|
|||
{
|
||||
DWORD discarded;
|
||||
ReadConsoleInputW (get_handle (), input_rec, discard_len, &discarded);
|
||||
con.num_processed = max (con.num_processed - discarded, 0);
|
||||
con.num_processed -= min (con.num_processed, discarded);
|
||||
}
|
||||
return stat;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue