diff options
author | =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> | 2022-01-28 15:28:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-28 15:28:04 +0000 |
commit | 420fabcd4ffeaf79082a6e43db91e1d363f88f27 (patch) | |
tree | 89938a5800078e96cdf992aca87e1c79a2f255ac /src/match.c | |
parent | fb80862e49fcbcf47907fc8cdaaf5c41cb9eb06e (diff) | |
download | vim-git-420fabcd4ffeaf79082a6e43db91e1d363f88f27.tar.gz |
patch 8.2.4241: some type casts are redundantv8.2.4241
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643)
Diffstat (limited to 'src/match.c')
-rw-r--r-- | src/match.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/match.c b/src/match.c index 3d7010e77..5041d6b34 100644 --- a/src/match.c +++ b/src/match.c @@ -1036,7 +1036,7 @@ f_getmatches(typval_T *argvars UNUSED, typval_T *rettv UNUSED) { 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 @@ f_matcharg(typval_T *argvars UNUSED, typval_T *rettv) 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); |