aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/version.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-10-03 03:04:21 +0200
committerGitHub <noreply@github.com>2021-10-02 18:04:21 -0700
commitad1c42a97d673b9fd2bf64b2382c87fbe65dfc73 (patch)
tree1dc5d77ed6ba987d0c6af8e492038ad7873e62b4 /src/nvim/version.c
parent4449297d12b70f5e6a65365e39aacf5e42303ffd (diff)
downloadrneovim-ad1c42a97d673b9fd2bf64b2382c87fbe65dfc73.tar.gz
rneovim-ad1c42a97d673b9fd2bf64b2382c87fbe65dfc73.tar.bz2
rneovim-ad1c42a97d673b9fd2bf64b2382c87fbe65dfc73.zip
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) https://github.com/vim/vim/commit/dfa5e464d459f84200a73d178f1ecefe75bbe511
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r--src/nvim/version.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index a42164903d..bc06ef0b98 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -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;