diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-01-28 22:54:03 +0100 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2022-01-30 19:16:51 +0100 |
commit | 2793fcae0ac2aef14c8f22636d579c68a97c0851 (patch) | |
tree | 5cddb34fa2afee8587a11aa5b431b7859b451536 /src/nvim/ex_cmds.c | |
parent | 46bd48f7e902250dbccdea71ec6eb3888588133f (diff) | |
download | rneovim-2793fcae0ac2aef14c8f22636d579c68a97c0851.tar.gz rneovim-2793fcae0ac2aef14c8f22636d579c68a97c0851.tar.bz2 rneovim-2793fcae0ac2aef14c8f22636d579c68a97c0851.zip |
vim-patch:8.2.4241: some type casts are redundant
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes vim/vim#9643)
https://github.com/vim/vim/commit/420fabcd4ffeaf79082a6e43db91e1d363f88f27
This is not a literal port but an equivalent one.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index e6d63d08a7..1916fa7e44 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1366,7 +1366,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((line2), (linenr_T)(line2 + 1)) == FAIL) { + if (u_save(line2, (linenr_T)(line2 + 1)) == FAIL) { xfree(cmd_buf); goto error; } @@ -3055,7 +3055,7 @@ void ex_append(exarg_T *eap) // it is the same as "start" -- Acevedo if (!cmdmod.lockmarks) { curbuf->b_op_start.lnum - = (eap->line2 < curbuf->b_ml.ml_line_count) ? eap->line2 + 1 : curbuf->b_ml.ml_line_count; + = (eap->line2 < curbuf->b_ml.ml_line_count) ? eap->line2 + 1 : curbuf->b_ml.ml_line_count; if (eap->cmdidx != CMD_append) { curbuf->b_op_start.lnum--; } |