mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
vim-patch:8.2.4241: some type casts are redundant
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes vim/vim#9643)
420fabcd4f
This is not a literal port but an equivalent one.
This commit is contained in:
@@ -1501,28 +1501,28 @@ static void sign_getinfo(sign_T *sp, dict_T *retdict)
|
||||
if (p == NULL) {
|
||||
p = "NONE";
|
||||
}
|
||||
tv_dict_add_str(retdict, S_LEN("linehl"), (char *)p);
|
||||
tv_dict_add_str(retdict, S_LEN("linehl"), p);
|
||||
}
|
||||
if (sp->sn_text_hl > 0) {
|
||||
p = get_highlight_name_ext(NULL, sp->sn_text_hl - 1, false);
|
||||
if (p == NULL) {
|
||||
p = "NONE";
|
||||
}
|
||||
tv_dict_add_str(retdict, S_LEN("texthl"), (char *)p);
|
||||
tv_dict_add_str(retdict, S_LEN("texthl"), p);
|
||||
}
|
||||
if (sp->sn_cul_hl > 0) {
|
||||
p = get_highlight_name_ext(NULL, sp->sn_cul_hl - 1, false);
|
||||
if (p == NULL) {
|
||||
p = "NONE";
|
||||
}
|
||||
tv_dict_add_str(retdict, S_LEN("culhl"), (char *)p);
|
||||
tv_dict_add_str(retdict, S_LEN("culhl"), p);
|
||||
}
|
||||
if (sp->sn_num_hl > 0) {
|
||||
p = get_highlight_name_ext(NULL, sp->sn_num_hl - 1, false);
|
||||
if (p == NULL) {
|
||||
p = "NONE";
|
||||
}
|
||||
tv_dict_add_str(retdict, S_LEN("numhl"), (char *)p);
|
||||
tv_dict_add_str(retdict, S_LEN("numhl"), p);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user