diff src/channel.c @ 15661:b6f11ff3b6d1 v8.1.0838

patch 8.1.0838: compiler warning for type conversion commit https://github.com/vim/vim/commit/dec01206b224fd0fba66e4da20a602e941d74d04 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 28 20:04:24 2019 +0100 patch 8.1.0838: compiler warning for type conversion Problem: Compiler warning for type conversion. Solution: Add a type cast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Jan 2019 20:15:06 +0100
parents d4a6d575e910
children 01890a3caefd
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -90,7 +90,7 @@ fd_write(sock_T fd, char *buf, size_t le
 	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));