patch 8.2.4241: some type casts are redundant
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes #9643)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index fa06e06..aa91539 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -6800,7 +6800,7 @@
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 @@
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 @@
{
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;