aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/sign.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-03 20:47:29 +0800
committerGitHub <noreply@github.com>2022-02-03 20:47:29 +0800
commit89e308d7daeb8b2344105877200c7c5ae83760b0 (patch)
tree17618e0b9ad59a16e9b4b16e1b8b0d6ea0dcafbf /src/nvim/sign.c
parent02d4c9158831be1ed89beb1c840d3d4efcf099c4 (diff)
parent2793fcae0ac2aef14c8f22636d579c68a97c0851 (diff)
downloadrneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.tar.gz
rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.tar.bz2
rneovim-89e308d7daeb8b2344105877200c7c5ae83760b0.zip
Merge pull request #17226 from dundargoc/refactor/remove-redundant-code
vim-patch:8.2.4241: some type casts are redundant
Diffstat (limited to 'src/nvim/sign.c')
-rw-r--r--src/nvim/sign.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/sign.c b/src/nvim/sign.c
index a308df07d1..8b41781c98 100644
--- a/src/nvim/sign.c
+++ b/src/nvim/sign.c
@@ -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);
}
}