mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.2.3436: check for optional bool type has confusing return type
Problem: Check for optional bool type has confusing return type. Solution: Explicitly return OK.
This commit is contained in:
@@ -459,13 +459,15 @@ check_for_bool_arg(typval_T *args, int idx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check for an optional bool argument at 'idx'
|
* Check for an optional bool argument at 'idx'.
|
||||||
|
* Return FAIL if the type is wrong.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
check_for_opt_bool_arg(typval_T *args, int idx)
|
check_for_opt_bool_arg(typval_T *args, int idx)
|
||||||
{
|
{
|
||||||
return (args[idx].v_type == VAR_UNKNOWN
|
if (args[idx].v_type == VAR_UNKNOWN)
|
||||||
|| check_for_bool_arg(args, idx) != FAIL);
|
return OK;
|
||||||
|
return check_for_bool_arg(args, idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -755,6 +755,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 */
|
||||||
|
/**/
|
||||||
|
3436,
|
||||||
/**/
|
/**/
|
||||||
3435,
|
3435,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user