]> granicus.if.org Git - vim/commitdiff
patch 8.1.0838: compiler warning for type conversion v8.1.0838
authorBram Moolenaar <Bram@vim.org>
Mon, 28 Jan 2019 19:04:24 +0000 (20:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 28 Jan 2019 19:04:24 +0000 (20:04 +0100)
Problem:    Compiler warning for type conversion.
Solution:   Add a type cast. (Mike Williams)

src/channel.c
src/version.c

index 7c649b171483118743c61f322a78d80cebdc6685..419939897dce58ba94d6e986e41c43d1b593d419 100644 (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));
index 6ceaf23c61dca898203ba172647d169566f99972..7d63c554d748878e16155ce7898fa9dc97229216 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    838,
 /**/
     837,
 /**/