mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
@@ -3773,9 +3773,9 @@ term_load_dump(typval_T *argvars, typval_T *rettv, int do_diff)
|
|||||||
|
|
||||||
if (opt.jo_term_name == NULL)
|
if (opt.jo_term_name == NULL)
|
||||||
{
|
{
|
||||||
int len = STRLEN(fname1) + 12;
|
size_t len = STRLEN(fname1) + 12;
|
||||||
|
|
||||||
fname_tofree = alloc(len);
|
fname_tofree = alloc((int)len);
|
||||||
if (fname_tofree != NULL)
|
if (fname_tofree != NULL)
|
||||||
{
|
{
|
||||||
vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1);
|
vim_snprintf((char *)fname_tofree, len, "dump diff %s", fname1);
|
||||||
|
@@ -766,6 +766,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1626,
|
||||||
/**/
|
/**/
|
||||||
1625,
|
1625,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user