aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
committerAnton Ovchinnikov <revolver112@gmail.com>2015-03-09 00:40:50 +0100
commit9925b3a0477e5af348a8348544e69a65a9222c1b (patch)
tree467cdcd1d1f9f6662aa7ea9331f4ddceacbdbfb8 /src/nvim/ops.c
parentc0a668aa26a01145bee1d8162e14bacd0a10eca2 (diff)
downloadrneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.gz
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.tar.bz2
rneovim-9925b3a0477e5af348a8348544e69a65a9222c1b.zip
Remove redundant casts
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 062fc1bbfa..7f2df8199c 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -1494,7 +1494,7 @@ int op_delete(oparg_T *oap)
if (oap->line_count > 1) {
lnum = curwin->w_cursor.lnum;
++curwin->w_cursor.lnum;
- del_lines((long)(oap->line_count - 1), TRUE);
+ del_lines(oap->line_count - 1, TRUE);
curwin->w_cursor.lnum = lnum;
}
if (u_save_cursor() == FAIL)
@@ -1607,7 +1607,7 @@ int op_delete(oparg_T *oap)
curpos = curwin->w_cursor; /* remember curwin->w_cursor */
++curwin->w_cursor.lnum;
- del_lines((long)(oap->line_count - 2), FALSE);
+ del_lines(oap->line_count - 2, FALSE);
if (delete_last_line)
oap->end.lnum = curbuf->b_ml.ml_line_count;