Mercurial > vim
comparison src/version.c @ 25852:336e2d9924e6 v8.2.3460
patch 8.2.3460: some type casts are not needed
Commit: https://github.com/vim/vim/commit/dfa5e464d459f84200a73d178f1ecefe75bbe511
Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>
Date: Sat Oct 2 11:26:51 2021 +0100
patch 8.2.3460: some type casts are not needed
Problem: Some type casts are not needed.
Solution: Remove unnecessary type casts. (closes https://github.com/vim/vim/issues/8934)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Oct 2021 12:30:05 +0200 |
parents | 6f615b2fdc66 |
children | 2d0bea8aed33 |
comparison
equal
deleted
inserted
replaced
25851:6dd46a7fa3cd | 25852:336e2d9924e6 |
---|---|
756 }; | 756 }; |
757 | 757 |
758 static int included_patches[] = | 758 static int included_patches[] = |
759 { /* Add new patch number below this line */ | 759 { /* Add new patch number below this line */ |
760 /**/ | 760 /**/ |
761 3460, | |
762 /**/ | |
761 3459, | 763 3459, |
762 /**/ | 764 /**/ |
763 3458, | 765 3458, |
764 /**/ | 766 /**/ |
765 3457, | 767 3457, |
7744 * When "wrap" is TRUE wrap the string in []. | 7746 * When "wrap" is TRUE wrap the string in []. |
7745 */ | 7747 */ |
7746 static void | 7748 static void |
7747 version_msg_wrap(char_u *s, int wrap) | 7749 version_msg_wrap(char_u *s, int wrap) |
7748 { | 7750 { |
7749 int len = (int)vim_strsize(s) + (wrap ? 2 : 0); | 7751 int len = vim_strsize(s) + (wrap ? 2 : 0); |
7750 | 7752 |
7751 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | 7753 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns |
7752 && *s != '\n') | 7754 && *s != '\n') |
7753 msg_putchar('\n'); | 7755 msg_putchar('\n'); |
7754 if (!got_int) | 7756 if (!got_int) |
7796 | 7798 |
7797 // Find the length of the longest item, use that + 1 as the column | 7799 // Find the length of the longest item, use that + 1 as the column |
7798 // width. | 7800 // width. |
7799 for (i = 0; size < 0 ? items[i] != NULL : i < size; ++i) | 7801 for (i = 0; size < 0 ? items[i] != NULL : i < size; ++i) |
7800 { | 7802 { |
7801 int l = (int)vim_strsize(items[i]) + (i == current ? 2 : 0); | 7803 int l = vim_strsize(items[i]) + (i == current ? 2 : 0); |
7802 | 7804 |
7803 if (l > width) | 7805 if (l > width) |
7804 width = l; | 7806 width = l; |
7805 ++item_count; | 7807 ++item_count; |
7806 } | 7808 } |