forked from aniani/vim
patch 9.0.0063: too many type casts for dict_get functions
Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
This commit is contained in:
@@ -4115,7 +4115,7 @@ f_searchcount(typval_T *argvars, typval_T *rettv)
|
||||
if (error)
|
||||
return;
|
||||
}
|
||||
recompute = dict_get_bool(dict, (char_u *)"recompute", recompute);
|
||||
recompute = dict_get_bool(dict, "recompute", recompute);
|
||||
di = dict_find(dict, (char_u *)"pattern", -1);
|
||||
if (di != NULL)
|
||||
{
|
||||
@@ -4645,7 +4645,8 @@ fuzzy_match_in_list(
|
||||
// For a dict, either use the specified key to lookup the string or
|
||||
// use the specified callback function to get the string.
|
||||
if (key != NULL)
|
||||
itemstr = dict_get_string(li->li_tv.vval.v_dict, key, FALSE);
|
||||
itemstr = dict_get_string(li->li_tv.vval.v_dict,
|
||||
(char *)key, FALSE);
|
||||
else
|
||||
{
|
||||
typval_T argv[2];
|
||||
|
Reference in New Issue
Block a user