0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.0838: compiler warning for type conversion

Problem:    Compiler warning for type conversion.
Solution:   Add a type cast. (Mike Williams)
This commit is contained in:
Bram Moolenaar 2019-01-28 20:04:24 +01:00
parent 26d982185e
commit dec01206b2
2 changed files with 3 additions and 1 deletions

View File

@ -90,7 +90,7 @@ fd_write(sock_T fd, char *buf, size_t len)
if (todo > MAX_NAMED_PIPE_SIZE)
size = MAX_NAMED_PIPE_SIZE;
else
size = todo;
size = (DWORD)todo;
// If the pipe overflows while the job does not read the data, WriteFile
// will block forever. This abandons the write.
memset(&ov, 0, sizeof(ov));

View File

@ -783,6 +783,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
838,
/**/
837,
/**/