aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.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/marktree.c
parentc61a3865eea21f87ac17719ba226ad556b5a11a6 (diff)
downloadrneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.tar.gz
rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.tar.bz2
rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.zip
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r--src/nvim/marktree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c
index ebe4478bc8..e62f91e698 100644
--- a/src/nvim/marktree.c
+++ b/src/nvim/marktree.c
@@ -837,8 +837,8 @@ bool marktree_splice(MarkTree *b, int start_line, int start_col, int old_extent_
int old_extent_col, int new_extent_line, int new_extent_col)
{
mtpos_t start = { start_line, start_col };
- mtpos_t old_extent = { (int)old_extent_line, old_extent_col };
- mtpos_t new_extent = { (int)new_extent_line, new_extent_col };
+ mtpos_t old_extent = { old_extent_line, old_extent_col };
+ mtpos_t new_extent = { new_extent_line, new_extent_col };
bool may_delete = (old_extent.row != 0 || old_extent.col != 0);
bool same_line = old_extent.row == 0 && new_extent.row == 0;