diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-04-07 21:08:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 21:08:16 +0200 |
commit | 04933b1ea968f958d2541dd65fd33ebb503caac3 (patch) | |
tree | 430e333892c440dccce4d1b4606c83ab36f817c5 /src/nvim/tag.c | |
parent | 9408f2dcf7cade2631688300e9b58eed6bc5219a (diff) | |
download | rneovim-04933b1ea968f958d2541dd65fd33ebb503caac3.tar.gz rneovim-04933b1ea968f958d2541dd65fd33ebb503caac3.tar.bz2 rneovim-04933b1ea968f958d2541dd65fd33ebb503caac3.zip |
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 06532f47c1..401b43204e 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -1303,7 +1303,7 @@ static int find_tagfunc_tags(char *pat, garray_T *ga, int *match_count, int flag res_kind = NULL; TV_DICT_ITER(TV_LIST_ITEM_TV(li)->vval.v_dict, di, { - const char *dict_key = (char *)di->di_key; + const char *dict_key = di->di_key; typval_T *tv = &di->di_tv; if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL) { @@ -1372,7 +1372,7 @@ static int find_tagfunc_tags(char *pat, garray_T *ga, int *match_count, int flag } TV_DICT_ITER(TV_LIST_ITEM_TV(li)->vval.v_dict, di, { - const char *dict_key = (char *)di->di_key; + const char *dict_key = di->di_key; typval_T *tv = &di->di_tv; if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL) { continue; @@ -2530,7 +2530,7 @@ int get_tagfname(tagname_T *tnp, int first, char *buf) } tnp->tn_hf_idx++; STRCPY(buf, p_hf); - STRCPY(path_tail((char *)buf), "tags"); + STRCPY(path_tail(buf), "tags"); #ifdef BACKSLASH_IN_FILENAME slash_adjust(buf); #endif |