Skip to content

Commit 3a118be

Browse files
committed
patch 8.0.0246: compiler warnings for int to pointer conversion
Problem: Compiler warnings for int to pointer conversion. Solution: Fix macro for mch_memmove(). (John Marriott)
1 parent 16038d5 commit 3a118be

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
246,
767769
/**/
768770
245,
769771
/**/

src/vim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ typedef unsigned short disptick_T; /* display tick type */
17151715
typedef void *vim_acl_T; /* dummy to pass an ACL to a function */
17161716

17171717
#ifndef mch_memmove
1718-
# define mch_memmove(to, from, len) memmove((char*)(to), (char*)(from), (char*)(len))
1718+
# define mch_memmove(to, from, len) memmove((char*)(to), (char*)(from), (size_t)(len))
17191719
#endif
17201720

17211721
/*

0 commit comments

Comments
 (0)