vim-patch:8.2.3460: some type casts are not needed #15868

Problem:    Some type casts are not needed.
Solution:   Remove unnecessary type casts. (closes vim/vim#8934)
dfa5e464d4
This commit is contained in:
dundargoc
2021-10-03 03:04:21 +02:00
committed by GitHub
parent 4449297d12
commit ad1c42a97d
9 changed files with 21 additions and 25 deletions

View File

@@ -2019,7 +2019,7 @@ void ex_version(exarg_T *eap)
/// @param wrap
static void version_msg_wrap(char_u *s, int wrap)
{
int len = (int)vim_strsize(s) + (wrap ? 2 : 0);
int len = vim_strsize(s) + (wrap ? 2 : 0);
if (!got_int
&& (len < Columns)
@@ -2070,7 +2070,7 @@ void list_in_columns(char_u **items, int size, int current)
// Find the length of the longest item, use that + 1 as the column width.
int i;
for (i = 0; size < 0 ? items[i] != NULL : i < size; i++) {
int l = (int)vim_strsize(items[i]) + (i == current ? 2 : 0);
int l = vim_strsize(items[i]) + (i == current ? 2 : 0);
if (l > width) {
width = l;