]> granicus.if.org Git - vim/commitdiff
patch 8.0.0246: compiler warnings for int to pointer conversion v8.0.0246
authorBram Moolenaar <Bram@vim.org>
Fri, 27 Jan 2017 20:22:19 +0000 (21:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 27 Jan 2017 20:22:19 +0000 (21:22 +0100)
Problem:    Compiler warnings for int to pointer conversion.
Solution:   Fix macro for mch_memmove(). (John Marriott)

src/version.c
src/vim.h

index a2ebcf51c57b9e5df94d8bee5e9a9fc5edfe9e98..d3c25e6943ee42b9afad4d072f7621373dfe4a11 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    246,
 /**/
     245,
 /**/
index 1bd38219a3815005c5db7c7e24e1dcb99fe945df..abee386cb3335e1cdac1a856ee488195bcf18860 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -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 */
 
 #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
 
 /*