Skip to content

Commit b571c63

Browse files
committed
patch 8.0.1626: compiler warning for possible loss of data
Problem: Compiler warning for possible loss of data. Solution: Use size_t instead of int. (Christian Brabandt)
1 parent 29dfa5a commit b571c63

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/terminal.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3773,9 +3773,9 @@ term_load_dump(typval_T *argvars, typval_T *rettv, int do_diff)
37733773

37743774
if (opt.jo_term_name == NULL)
37753775
{
3776-
int len = STRLEN(fname1) + 12;
3776+
size_t len = STRLEN(fname1) + 12;
37773777

3778-
fname_tofree = alloc(len);
3778+
fname_tofree = alloc((int)len);
37793779
if (fname_tofree != NULL)
37803780
{
37813781
vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1);

src/version.c

+2
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1626,
769771
/**/
770772
1625,
771773
/**/

0 commit comments

Comments
 (0)