changeset 35599:854444b90965 v9.1.0545

patch 9.1.0545: MSVC conversion warning Commit: https://github.com/vim/vim/commit/5285b3cd297826a8c90eb0537c20762f66c5ca4d Author: Ernie Rael <errael@raelity.com> Date: Mon Jul 8 20:42:45 2024 +0200 patch 9.1.0545: MSVC conversion warning 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>
author Christian Brabandt <cb@256bit.org>
date Mon, 08 Jul 2024 21:00:05 +0200
parents d58f4ca037cc
children 6266834c5a60
files src/eval.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -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;
     }
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    545,
+/**/
     544,
 /**/
     543,