Skip to content

Commit 5ecdf96

Browse files
committed
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)
1 parent ffa9684 commit 5ecdf96

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/os_unix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4199,7 +4199,7 @@ set_child_environment(
41994199
# ifdef FEAT_TERMINAL
42004200
if (is_terminal)
42014201
{
4202-
sprintf((char *)envbuf, "%ld", get_vim_var_nr(VV_VERSION));
4202+
sprintf((char *)envbuf, "%ld", (long)get_vim_var_nr(VV_VERSION));
42034203
setenv("VIM_TERMINAL", (char *)envbuf, 1);
42044204
}
42054205
# endif
@@ -4227,7 +4227,7 @@ set_child_environment(
42274227
if (is_terminal)
42284228
{
42294229
vim_snprintf(envbuf_Version, sizeof(envbuf_Version),
4230-
"VIM_TERMINAL=%ld", get_vim_var_nr(VV_VERSION));
4230+
"VIM_TERMINAL=%ld", (long)get_vim_var_nr(VV_VERSION));
42314231
putenv(envbuf_Version);
42324232
}
42334233
# endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
54,
764766
/**/
765767
53,
766768
/**/

0 commit comments

Comments
 (0)