aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2015-03-13 07:09:08 -0400
committerJohn Szakmeister <john@szakmeister.net>2015-03-13 07:09:08 -0400
commitc015eabe13bd37fb7d129da20904dd172b0bd3a1 (patch)
tree1b4a910ce85a78a265d2b2c708e3d47b7da08826 /src/nvim/ex_docmd.c
parentb5bb6269b0f27c5192eaed6a069ba564c278760a (diff)
parent9925b3a0477e5af348a8348544e69a65a9222c1b (diff)
downloadrneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.tar.gz
rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.tar.bz2
rneovim-c015eabe13bd37fb7d129da20904dd172b0bd3a1.zip
Merge pull request #2118 from rev112/fix_redundant_cast
Remove redundant casts
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index fa6021075d..8167824a41 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -3155,7 +3155,7 @@ get_address (
case '?': /* '/' or '?' - search */
c = *cmd++;
if (skip) { /* skip "/pat/" */
- cmd = skip_regexp(cmd, c, (int)p_magic, NULL);
+ cmd = skip_regexp(cmd, c, p_magic, NULL);
if (*cmd == c)
++cmd;
} else {
@@ -5881,13 +5881,13 @@ static void ex_resize(exarg_T *eap)
n += curwin->w_width;
else if (n == 0 && eap->arg[0] == NUL) /* default is very wide */
n = 9999;
- win_setwidth_win((int)n, wp);
+ win_setwidth_win(n, wp);
} else {
if (*eap->arg == '-' || *eap->arg == '+')
n += curwin->w_height;
else if (n == 0 && eap->arg[0] == NUL) /* default is very wide */
n = 9999;
- win_setheight_win((int)n, wp);
+ win_setheight_win(n, wp);
}
}
@@ -6363,7 +6363,7 @@ static void ex_sleep(exarg_T *eap)
if (cursor_valid()) {
n = curwin->w_winrow + curwin->w_wrow - msg_scrolled;
if (n >= 0)
- ui_cursor_goto((int)n, curwin->w_wincol + curwin->w_wcol);
+ ui_cursor_goto(n, curwin->w_wincol + curwin->w_wcol);
}
len = eap->line2;