]> granicus.if.org Git - vim/commitdiff
patch 8.1.0054: compiler warning for using %ld for "long long" v8.1.0054
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Jun 2018 18:49:50 +0000 (20:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Jun 2018 18:49:50 +0000 (20:49 +0200)
Problem:    Compiler warning for using %ld for "long long".
Solution:   Add a type cast. (closes #3002)

src/os_unix.c
src/version.c

index 71886538e14eafe0022dde55b6f022410fc28015..05ad6b8dfd798bd080b12072e272d4663886ba0f 100644 (file)
@@ -4199,7 +4199,7 @@ set_child_environment(
 #  ifdef FEAT_TERMINAL
     if (is_terminal)
     {
-       sprintf((char *)envbuf, "%ld",  get_vim_var_nr(VV_VERSION));
+       sprintf((char *)envbuf, "%ld",  (long)get_vim_var_nr(VV_VERSION));
        setenv("VIM_TERMINAL", (char *)envbuf, 1);
     }
 #  endif
@@ -4227,7 +4227,7 @@ set_child_environment(
     if (is_terminal)
     {
        vim_snprintf(envbuf_Version, sizeof(envbuf_Version),
-                              "VIM_TERMINAL=%ld", get_vim_var_nr(VV_VERSION));
+                        "VIM_TERMINAL=%ld", (long)get_vim_var_nr(VV_VERSION));
        putenv(envbuf_Version);
     }
 #  endif
index 2ea298bc3b4b9fda453d51d9569bf87bbbd9a7a7..90ec0e4141126bc32fd94ba345da5224f4561a29 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    54,
 /**/
     53,
 /**/