comparison 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
comparison
equal deleted inserted replaced
15660:8dcb275f209b 15661:b6f11ff3b6d1
88 while (todo > 0) 88 while (todo > 0)
89 { 89 {
90 if (todo > MAX_NAMED_PIPE_SIZE) 90 if (todo > MAX_NAMED_PIPE_SIZE)
91 size = MAX_NAMED_PIPE_SIZE; 91 size = MAX_NAMED_PIPE_SIZE;
92 else 92 else
93 size = todo; 93 size = (DWORD)todo;
94 // If the pipe overflows while the job does not read the data, WriteFile 94 // If the pipe overflows while the job does not read the data, WriteFile
95 // will block forever. This abandons the write. 95 // will block forever. This abandons the write.
96 memset(&ov, 0, sizeof(ov)); 96 memset(&ov, 0, sizeof(ov));
97 if (!WriteFile(h, buf + done, size, &nwrite, &ov)) 97 if (!WriteFile(h, buf + done, size, &nwrite, &ov))
98 { 98 {