changeset 14073:a9b141cf99ff v8.1.0054

patch 8.1.0054: compiler warning for using %ld for "long long" commit https://github.com/vim/vim/commit/5ecdf96422af3171cf948865bf057c2a61f042bc Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 13 20:49:50 2018 +0200 patch 8.1.0054: compiler warning for using %ld for "long long" Problem: Compiler warning for using %ld for "long long". Solution: Add a type cast. (closes https://github.com/vim/vim/issues/3002)
author Christian Brabandt <cb@256bit.org>
date Wed, 13 Jun 2018 21:00:06 +0200
parents da680e50bcde
children ec0ce6a5f231
files src/os_unix.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    54,
+/**/
     53,
 /**/
     52,