summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-28 20:04:24 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-28 20:04:24 +0100
commitdec01206b224fd0fba66e4da20a602e941d74d04 (patch)
tree1100696fd431cba04a9f2faf5ee625ede821a897 /src/channel.c
parent26d982185e21398738a9c688429c0a1840d7c9c3 (diff)
downloadvim-git-dec01206b224fd0fba66e4da20a602e941d74d04.tar.gz
patch 8.1.0838: compiler warning for type conversionv8.1.0838
Problem: Compiler warning for type conversion. Solution: Add a type cast. (Mike Williams)
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index 7c649b171..419939897 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -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));