aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/if_cscope.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-10-07 18:39:27 +0200
committerGitHub <noreply@github.com>2021-10-07 18:39:27 +0200
commit684299ed4c9c21f0353ceaec2d1679f956617737 (patch)
tree6c041d17da377f9f5c691ffda778002aa78cbc0f /src/nvim/if_cscope.c
parentb55944e8af870e1132be8353070536dd17383852 (diff)
parent6d9dea42012fa9ae42832f12c9fd457003cb196f (diff)
downloadrneovim-684299ed4c9c21f0353ceaec2d1679f956617737.tar.gz
rneovim-684299ed4c9c21f0353ceaec2d1679f956617737.tar.bz2
rneovim-684299ed4c9c21f0353ceaec2d1679f956617737.zip
Merge pull request #15941 from dundargoc/refactor/remove-redundant-casts
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) {