From: Bram Moolenaar Date: Fri, 27 Jan 2017 20:22:19 +0000 (+0100) Subject: patch 8.0.0246: compiler warnings for int to pointer conversion X-Git-Tag: v8.0.0246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a118be1501549a7a9b8f52618fd0a967470d0a1;p=vim 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) --- diff --git a/src/version.c b/src/version.c index a2ebcf51c..d3c25e694 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 246, /**/ 245, /**/ diff --git a/src/vim.h b/src/vim.h index 1bd38219a..abee386cb 100644 --- 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 /*