diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-23 09:52:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-23 09:52:04 +0100 |
commit | d61efa50f8f5b9d9dcbc136705cc33874f0fdcb3 (patch) | |
tree | 7ca7416ffda546d9f45ba93d3c93f3418bd6bcd0 /src/match.c | |
parent | 5ac50de83f1b4136f903c51a1d4e7d84a26c2271 (diff) | |
download | vim-git-d61efa50f8f5b9d9dcbc136705cc33874f0fdcb3.tar.gz |
patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063
Problem: Too many type casts for dict_get functions.
Solution: Change the key argument from "char_u *" to "char *".
Diffstat (limited to 'src/match.c')
-rw-r--r-- | src/match.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/match.c b/src/match.c index c9231876b..e58ad013c 100644 --- a/src/match.c +++ b/src/match.c @@ -961,8 +961,7 @@ matchadd_dict_arg(typval_T *tv, char_u **conceal_char, win_T **win) } if (dict_has_key(tv->vval.v_dict, "conceal")) - *conceal_char = dict_get_string(tv->vval.v_dict, - (char_u *)"conceal", FALSE); + *conceal_char = dict_get_string(tv->vval.v_dict, "conceal", FALSE); if ((di = dict_find(tv->vval.v_dict, (char_u *)"window", -1)) != NULL) { @@ -1161,16 +1160,16 @@ f_setmatches(typval_T *argvars UNUSED, typval_T *rettv UNUSED) } } - group = dict_get_string(d, (char_u *)"group", TRUE); - priority = (int)dict_get_number(d, (char_u *)"priority"); - id = (int)dict_get_number(d, (char_u *)"id"); + group = dict_get_string(d, "group", TRUE); + priority = (int)dict_get_number(d, "priority"); + id = (int)dict_get_number(d, "id"); conceal = dict_has_key(d, "conceal") - ? dict_get_string(d, (char_u *)"conceal", TRUE) + ? dict_get_string(d, "conceal", TRUE) : NULL; if (i == 0) { match_add(win, group, - dict_get_string(d, (char_u *)"pattern", FALSE), + dict_get_string(d, "pattern", FALSE), priority, id, NULL, conceal); } else |