0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-01-27 21:22:19 +01:00
parent 16038d50c4
commit 3a118be150
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -1715,7 +1715,7 @@ typedef unsigned short disptick_T; /* display tick type */
typedef void *vim_acl_T; /* dummy to pass an ACL to a function */ typedef void *vim_acl_T; /* dummy to pass an ACL to a function */
#ifndef mch_memmove #ifndef mch_memmove
# define mch_memmove(to, from, len) memmove((char*)(to), (char*)(from), (char*)(len)) # define mch_memmove(to, from, len) memmove((char*)(to), (char*)(from), (size_t)(len))
#endif #endif
/* /*