mirror of
https://github.com/vim/vim.git
synced 2025-08-22 19:27:53 -04:00
updated for version 7.4b.022
Problem: Not waiting for a character when the tick count overflows. Solution: Subtract the unsigned numbers and cast to int. (Ken Takata)
This commit is contained in:
parent
b09129684b
commit
b7512b79ce
@ -1357,9 +1357,10 @@ WaitForChar(long msec)
|
|||||||
|
|
||||||
if (msec > 0)
|
if (msec > 0)
|
||||||
{
|
{
|
||||||
/* If the specified wait time has passed, return. */
|
/* If the specified wait time has passed, return. Beware that
|
||||||
|
* GetTickCount() may wrap around (overflow). */
|
||||||
dwNow = GetTickCount();
|
dwNow = GetTickCount();
|
||||||
if (dwNow >= dwEndTime)
|
if ((int)(dwNow - dwEndTime) >= 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (msec != 0)
|
if (msec != 0)
|
||||||
|
@ -727,6 +727,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
22,
|
||||||
/**/
|
/**/
|
||||||
21,
|
21,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user