mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -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 the specified wait time has passed, return. */
|
||||
/* If the specified wait time has passed, return. Beware that
|
||||
* GetTickCount() may wrap around (overflow). */
|
||||
dwNow = GetTickCount();
|
||||
if (dwNow >= dwEndTime)
|
||||
if ((int)(dwNow - dwEndTime) >= 0)
|
||||
break;
|
||||
}
|
||||
if (msec != 0)
|
||||
|
@ -727,6 +727,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
22,
|
||||
/**/
|
||||
21,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user