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/highlight.c | |
parent | 5ac50de83f1b4136f903c51a1d4e7d84a26c2271 (diff) |
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/highlight.c')
-rw-r--r-- | src/highlight.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/highlight.c b/src/highlight.c index 575451e705..2542c7b202 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -4317,8 +4317,7 @@ hldict_attr_to_str( p = attr_str; for (i = 0; i < (int)ARRAY_LENGTH(hl_name_table); i++) { - if (dict_get_bool(attrdict, (char_u *)hl_name_table[i], - VVAL_FALSE) == VVAL_TRUE) + if (dict_get_bool(attrdict, hl_name_table[i], VVAL_FALSE) == VVAL_TRUE) { if (p != attr_str && (size_t)(p - attr_str + 2) < len) STRCPY(p, (char_u *)","); @@ -4398,10 +4397,10 @@ hlg_add_or_update(dict_T *dict) if (name == NULL || *name == NUL || error) return FALSE; - if (dict_get_bool(dict, (char_u *)"force", VVAL_FALSE) == VVAL_TRUE) + if (dict_get_bool(dict, "force", VVAL_FALSE) == VVAL_TRUE) forceit = TRUE; - if (dict_get_bool(dict, (char_u *)"default", VVAL_FALSE) == VVAL_TRUE) + if (dict_get_bool(dict, "default", VVAL_FALSE) == VVAL_TRUE) dodefault = TRUE; if (dict_has_key(dict, "cleared")) @@ -4409,7 +4408,7 @@ hlg_add_or_update(dict_T *dict) varnumber_T cleared; // clear a highlight group - cleared = dict_get_bool(dict, (char_u *)"cleared", FALSE); + cleared = dict_get_bool(dict, "cleared", FALSE); if (cleared == TRUE) { vim_snprintf((char *)hlsetBuf, HLSETBUFSZ, "clear %s", name); |