]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0545: MSVC conversion warning v9.1.0545
authorErnie Rael <errael@raelity.com>
Mon, 8 Jul 2024 18:42:45 +0000 (20:42 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 8 Jul 2024 18:42:45 +0000 (20:42 +0200)
Problem:  MSVC conversion warning (LemonBoy, after 9.1.0522)
Solution: Use size_t instead of int, fix style of casts
          (Ernie Rael)

related: #15082
closes: #15187

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/eval.c
src/version.c

index 049834650fa581d4b8a9b3b66fa0be051aa045ef..beb913ffe12474bfc55dd9f3bdc78a69ae5a5f67 100644 (file)
@@ -6197,10 +6197,10 @@ object_tv2string(
     else if (copyID != 0 && obj->obj_copyID == copyID
             && obj->obj_class->class_obj_member_count != 0)
     {
-       int n = 25 + strlen((char*)obj->obj_class->class_name);
+       size_t n = 25 + strlen((char *)obj->obj_class->class_name);
        r = alloc(n);
        if (r != NULL)
-           (void)vim_snprintf((char*)r, n, "object of %s {...}",
+           (void)vim_snprintf((char *)r, n, "object of %s {...}",
                                                obj->obj_class->class_name);
        *tofree = r;
     }
index 536f840ad223f8494cac7ba79edec7a5be45066f..59c9f976c253bb504734b54a667b6f2fbf3179c6 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    545,
 /**/
     544,
 /**/