Permalink
Browse files

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 #3002)
  • Loading branch information...
brammool committed Jun 13, 2018
1 parent ffa9684 commit 5ecdf96422af3171cf948865bf057c2a61f042bc
Showing with 4 additions and 2 deletions.
  1. +2 −2 src/os_unix.c
  2. +2 −0 src/version.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
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
54,
/**/
53,
/**/

0 comments on commit 5ecdf96

Please sign in to comment.