mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.1235: compiler warnings for using STRLEN() value
Problem: Compiler warnings for using STRLEN() value. Solution: Cast to int. (Christian Brabandt, Mike Williams)
This commit is contained in:
@@ -1391,7 +1391,7 @@ find_tagfunc_tags(
|
|||||||
if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL)
|
if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
len += STRLEN(tv->vval.v_string) + 1; // Space for "\tVALUE"
|
len += (int)STRLEN(tv->vval.v_string) + 1; // Space for "\tVALUE"
|
||||||
if (!STRCMP(dict_key, "name"))
|
if (!STRCMP(dict_key, "name"))
|
||||||
{
|
{
|
||||||
res_name = tv->vval.v_string;
|
res_name = tv->vval.v_string;
|
||||||
@@ -1415,7 +1415,7 @@ find_tagfunc_tags(
|
|||||||
}
|
}
|
||||||
// Other elements will be stored as "\tKEY:VALUE"
|
// Other elements will be stored as "\tKEY:VALUE"
|
||||||
// Allocate space for the key and the colon
|
// Allocate space for the key and the colon
|
||||||
len += STRLEN(dict_key) + 1;
|
len += (int)STRLEN(dict_key) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_extra)
|
if (has_extra)
|
||||||
|
@@ -767,6 +767,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 */
|
||||||
|
/**/
|
||||||
|
1235,
|
||||||
/**/
|
/**/
|
||||||
1234,
|
1234,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user