changeset 10712:74f2182dc1d9 v8.0.0246

patch 8.0.0246: compiler warnings for int to pointer conversion commit https://github.com/vim/vim/commit/3a118be1501549a7a9b8f52618fd0a967470d0a1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 27 21:22:19 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Fri, 27 Jan 2017 21:30:05 +0100
parents 0e4fa82ecac8
children 3cb3793af176
files src/version.c src/vim.h
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    246,
+/**/
     245,
 /**/
     244,
--- a/src/vim.h
+++ b/src/vim.h
@@ -1715,7 +1715,7 @@ typedef unsigned short disptick_T;	/* di
 typedef void	    *vim_acl_T;		/* dummy to pass an ACL to a function */
 
 #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
 
 /*