diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-04-29 11:44:06 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-06 11:00:29 +0200 |
commit | 21a31ea9294ef923a9d258c668d2864f4409cf1c (patch) | |
tree | 9337f23f9b8c1b7b4dc1ec54cabc6da0ff46ae8d /src/nvim/marktree.c | |
parent | 8bbeab9989d5f905ce2e4512e9967ee99d859f70 (diff) | |
download | rneovim-21a31ea9294ef923a9d258c668d2864f4409cf1c.tar.gz rneovim-21a31ea9294ef923a9d258c668d2864f4409cf1c.tar.bz2 rneovim-21a31ea9294ef923a9d258c668d2864f4409cf1c.zip |
refactor: enable -Wconversion warning for edit.c
Work on https://github.com/neovim/neovim/issues/567
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r-- | src/nvim/marktree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c index ff31567bf5..fb2fa6bc7d 100644 --- a/src/nvim/marktree.c +++ b/src/nvim/marktree.c @@ -583,7 +583,7 @@ void marktree_move(MarkTree *b, MarkTreeIter *itr, int row, int col) // itr functions // TODO(bfredl): static inline? -bool marktree_itr_get(MarkTree *b, int row, int col, MarkTreeIter *itr) +bool marktree_itr_get(MarkTree *b, int32_t row, int col, MarkTreeIter *itr) { return marktree_itr_get_ext(b, (mtpos_t){ row, col }, itr, false, false, NULL); @@ -832,7 +832,7 @@ static void itr_swap(MarkTreeIter *itr1, MarkTreeIter *itr2) rawkey(itr2).pos = key2.pos; } -bool marktree_splice(MarkTree *b, int start_line, int start_col, int old_extent_line, +bool marktree_splice(MarkTree *b, int32_t start_line, int start_col, int old_extent_line, int old_extent_col, int new_extent_line, int new_extent_col) { mtpos_t start = { start_line, start_col }; |