0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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>
This commit is contained in:
Ernie Rael 2024-07-08 20:42:45 +02:00 committed by Christian Brabandt
parent 62f31e9499
commit 5285b3cd29
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 4 additions and 2 deletions

View 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;
}

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
545,
/**/
544,
/**/