aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/if_cscope.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2021-10-07 11:17:02 +0200
committerDundar Göc <gocdundar@gmail.com>2021-10-07 13:16:55 +0200
commit6d9dea42012fa9ae42832f12c9fd457003cb196f (patch)
tree1aecf23386c01c10856489158e1f8ba798377356 /src/nvim/if_cscope.c
parentc61a3865eea21f87ac17719ba226ad556b5a11a6 (diff)
downloadrneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.tar.gz
rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.tar.bz2
rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.zip
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/if_cscope.c')
-rw-r--r--src/nvim/if_cscope.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c
index 76dcb58236..f236b966ca 100644
--- a/src/nvim/if_cscope.c
+++ b/src/nvim/if_cscope.c
@@ -1294,7 +1294,7 @@ static int cs_kill(exarg_T *eap)
}
}
} else {
- cs_kill_execute((size_t)i, stok);
+ cs_kill_execute(i, stok);
}
}
@@ -1559,8 +1559,8 @@ static void cs_fill_results(char *tagstr, size_t totmatches, int *nummatches_a,
assert(totmatches > 0);
buf = xmalloc(CSREAD_BUFSIZE);
- matches = xmalloc(sizeof(char *) * (size_t)totmatches);
- cntxts = xmalloc(sizeof(char *) * (size_t)totmatches);
+ matches = xmalloc(sizeof(char *) * totmatches);
+ cntxts = xmalloc(sizeof(char *) * totmatches);
for (size_t i = 0; i < csinfo_size; i++) {
if (nummatches_a[i] < 1) {