summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>2022-01-28 15:28:04 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-28 15:28:04 +0000
commit420fabcd4ffeaf79082a6e43db91e1d363f88f27 (patch)
tree89938a5800078e96cdf992aca87e1c79a2f255ac /src/ex_docmd.c
parentfb80862e49fcbcf47907fc8cdaaf5c41cb9eb06e (diff)
patch 8.2.4241: some type casts are redundantv8.2.4241
Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index fa06e06d8a..aa91539270 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -6800,7 +6800,7 @@ ex_resize(exarg_T *eap)
n += wp->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
{
@@ -6808,7 +6808,7 @@ ex_resize(exarg_T *eap)
n += wp->w_height;
else if (n == 0 && eap->arg[0] == NUL) // default is very high
n = 9999;
- win_setheight_win((int)n, wp);
+ win_setheight_win(n, wp);
}
}
@@ -7531,7 +7531,7 @@ ex_sleep(exarg_T *eap)
{
n = W_WINROW(curwin) + curwin->w_wrow - msg_scrolled;
if (n >= 0)
- windgoto((int)n, curwin->w_wincol + curwin->w_wcol);
+ windgoto(n, curwin->w_wincol + curwin->w_wcol);
}
len = eap->line2;