aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.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/marktree.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/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;