diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-09-14 13:07:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 04:07:08 -0700 |
commit | b8cce77702777bb876b2cef7e28662cf4539265e (patch) | |
tree | 70424a5319204875e76dbfddb72c931635bd959d /src/nvim/ex_cmds.c | |
parent | 6ed43f8f1caad702f9590d174c5ec142f3d85b18 (diff) | |
download | rneovim-b8cce77702777bb876b2cef7e28662cf4539265e.tar.gz rneovim-b8cce77702777bb876b2cef7e28662cf4539265e.tar.bz2 rneovim-b8cce77702777bb876b2cef7e28662cf4539265e.zip |
fix: "redundant cast to the same type" #15662
Apply "redundant cast to the same type" fix from clangd.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 8096b1bc0c..5485355885 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1353,7 +1353,7 @@ static void do_filter(linenr_T line1, linenr_T line2, exarg_T *eap, char_u *cmd, ui_cursor_goto(Rows - 1, 0); if (do_out) { - if (u_save((linenr_T)(line2), (linenr_T)(line2 + 1)) == FAIL) { + if (u_save((line2), (linenr_T)(line2 + 1)) == FAIL) { xfree(cmd_buf); goto error; } @@ -3068,7 +3068,7 @@ void ex_change(exarg_T *eap) // make sure the cursor is not beyond the end of the file now check_cursor_lnum(); - deleted_lines_mark(eap->line1, (long)(eap->line2 - lnum)); + deleted_lines_mark(eap->line1, (eap->line2 - lnum)); // ":append" on the line above the deleted lines. eap->line2 = eap->line1; @@ -4085,7 +4085,7 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout, bool do_buf_event, handle + copy_len + sublen + 1); // copy the text up to the part that matched - memmove(new_end, sub_firstline + copycol, (size_t)copy_len); + memmove(new_end, sub_firstline + copycol, copy_len); new_end += copy_len; // Finally, at this point we can know where the match actually will |