patch 8.2.4241: some type casts are redundant
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643)
diff --git a/src/match.c b/src/match.c
index 3d7010e..5041d6b 100644
--- a/src/match.c
+++ b/src/match.c
@@ -1036,7 +1036,7 @@
{
char_u buf[MB_MAXBYTES + 1];
- buf[(*mb_char2bytes)((int)cur->conceal_char, buf)] = NUL;
+ buf[(*mb_char2bytes)(cur->conceal_char, buf)] = NUL;
dict_add_string(dict, "conceal", (char_u *)&buf);
}
# endif
@@ -1309,7 +1309,7 @@
id = (int)tv_get_number(&argvars[0]);
if (id >= 1 && id <= 3)
{
- if ((m = (matchitem_T *)get_match(curwin, id)) != NULL)
+ if ((m = get_match(curwin, id)) != NULL)
{
list_append_string(rettv->vval.v_list,
syn_id2name(m->hlg_id), -1);