diff options
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index 3fd423f6a5..2c045feefe 100644 --- a/src/search.c +++ b/src/search.c @@ -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]; |