diff options
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 2 |
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)); |