0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2018-06-13 20:49:50 +02:00
parent ffa9684150
commit 5ecdf96422
2 changed files with 4 additions and 2 deletions

View 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

View File

@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
54,
/**/
53,
/**/