Commit: patch 9.1.0288: MS-Windows: compiler warning for size_t to int conversion

3 views
Skip to first unread message

Christian Brabandt

unread,
Apr 9, 2024, 4:15:09 PM4/9/24
to vim...@googlegroups.com
patch 9.1.0288: MS-Windows: compiler warning for size_t to int conversion

Commit: https://github.com/vim/vim/commit/72a156b4edfdf1502d421370cf38281c258e3c4a
Author: Mike Williams <mrmr...@gmail.com>
Date: Tue Apr 9 22:04:54 2024 +0200

patch 9.1.0288: MS-Windows: compiler warning for size_t to int conversion

Problem: MS-Windows: compiler warning for size_t to int conversion
(after v9.1.0282)
Solution: Use size_t instead of int in highlight_set_termgui_attr
(Mike Williams)

closes: #14457

Signed-off-by: Mike Williams <mrmr...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/highlight.c b/src/highlight.c
index 54e348d33..9aa149ff9 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -860,7 +860,7 @@ highlight_reset_all(void)
highlight_set_termgui_attr(int idx, char_u *key, char_u *arg, int init)
{
int attr;
- int off;
+ size_t off;
keyvalue_T target;
keyvalue_T *entry;

diff --git a/src/version.c b/src/version.c
index 8cb3262c8..44f992367 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 288,
/**/
287,
/**/
Reply all
Reply to author
Forward
0 new messages