aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.c
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2023-04-07 21:43:00 +0200
committerGitHub <noreply@github.com>2023-04-07 21:43:00 +0200
commit2d78e656b715119ca11d131a1a932f22f1b4ad36 (patch)
tree2cb91a5838a33174019389c2e8e5e537a04ad914 /src/nvim/marktree.c
parent04933b1ea968f958d2541dd65fd33ebb503caac3 (diff)
downloadrneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.tar.gz
rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.tar.bz2
rneovim-2d78e656b715119ca11d131a1a932f22f1b4ad36.zip
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r--src/nvim/marktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c
index 7e900bafa2..f1285b39e7 100644
--- a/src/nvim/marktree.c
+++ b/src/nvim/marktree.c
@@ -1216,7 +1216,7 @@ void mt_inspect_node(MarkTree *b, garray_T *ga, mtnode_t *n, mtpos_t off)
for (int i = 0; i < n->n; i++) {
mtpos_t p = n->key[i].pos;
unrelative(off, &p);
- snprintf((char *)buf, sizeof(buf), "%d/%d", p.row, p.col);
+ snprintf(buf, sizeof(buf), "%d/%d", p.row, p.col);
ga_concat(ga, buf);
if (n->level) {
mt_inspect_node(b, ga, n->ptr[i + 1], p);