]> granicus.if.org Git - vim/commitdiff
patch 8.1.0912: MS-Windows: warning for signed/unsigned v8.1.0912
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Feb 2019 20:22:12 +0000 (21:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Feb 2019 20:22:12 +0000 (21:22 +0100)
Problem:    MS-Windows: warning for signed/unsigned.
Solution:   Add type cast. (Nobuhiro Takasaki, closes #3945)

src/terminal.c
src/version.c

index 3be26985867ef47b8b86609479483ec437d37a7b..a823499ed9d17bdc41394bd3afa649ef2bdbdf5d 100644 (file)
@@ -5722,7 +5722,7 @@ conpty_term_and_job_init(
     job->jv_proc_info = proc_info;
     job->jv_job_object = jo;
     job->jv_status = JOB_STARTED;
-    job->jv_tty_type = vim_strsave("conpty");
+    job->jv_tty_type = vim_strsave((char_u *)"conpty");
     ++job->jv_refcount;
     term->tl_job = job;
 
@@ -6056,7 +6056,7 @@ winpty_term_and_job_init(
            (short_u *)winpty_conin_name(term->tl_winpty), NULL);
     job->jv_tty_out = utf16_to_enc(
            (short_u *)winpty_conout_name(term->tl_winpty), NULL);
-    job->jv_tty_type = vim_strsave("winpty");
+    job->jv_tty_type = vim_strsave((char_u *)"winpty");
     ++job->jv_refcount;
     term->tl_job = job;
 
index 88960bafd2eb0817129ce264dc5a01417dca34ad..343270cc04ab88ebc8ae9e0d16ade566b60fa1fc 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    912,
 /**/
     911,
 /**/