forked from aniani/vim
patch 9.0.1163: compiler warning for implicit size_t/int conversion
Problem: Compiler warning for implicit size_t/int conversion. Solution: Add a type cast. (Mike Williams, closes #11795)
This commit is contained in:
committed by
Bram Moolenaar
parent
870cd76283
commit
dda3053121
@@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
1163,
|
||||||
/**/
|
/**/
|
||||||
1162,
|
1162,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -1275,7 +1275,7 @@ parse_type(char_u **arg, garray_T *type_gap, int give_error)
|
|||||||
// It can be a class or interface name.
|
// It can be a class or interface name.
|
||||||
typval_T tv;
|
typval_T tv;
|
||||||
tv.v_type = VAR_UNKNOWN;
|
tv.v_type = VAR_UNKNOWN;
|
||||||
if (eval_variable(*arg, len, 0, &tv, NULL, EVAL_VAR_IMPORT) == OK)
|
if (eval_variable(*arg, (int)len, 0, &tv, NULL, EVAL_VAR_IMPORT) == OK)
|
||||||
{
|
{
|
||||||
if (tv.v_type == VAR_CLASS && tv.vval.v_class != NULL)
|
if (tv.v_type == VAR_CLASS && tv.vval.v_class != NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user