Mercurial > vim
diff src/search.c @ 29442:827d9f2b7a71 v9.0.0063
patch 9.0.0063: too many type casts for dict_get functions
Commit: https://github.com/vim/vim/commit/d61efa50f8f5b9d9dcbc136705cc33874f0fdcb3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 23 09:52:04 2022 +0100
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 *".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Jul 2022 11:00:04 +0200 |
parents | 87980a7936e7 |
children | 89e1d67814a9 |
line wrap: on
line diff
--- a/src/search.c +++ b/src/search.c @@ -4115,7 +4115,7 @@ f_searchcount(typval_T *argvars, typval_ 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];