Cygwin: console: Fix a bug from comparison between int and DWORD.

This commit is contained in:
Takashi Yano 2022-03-02 11:08:27 +09:00
parent dea52d5c1e
commit 312dc2289c
1 changed files with 1 additions and 1 deletions

View File

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