# HG changeset patch # User Christian Brabandt # Date 1485549005 -3600 # Node ID 74f2182dc1d9ad2a04bcd0e713a925a19bda1934 # Parent 0e4fa82ecac8b4aadf09283f52b287167b0d4ad4 patch 8.0.0246: compiler warnings for int to pointer conversion commit https://github.com/vim/vim/commit/3a118be1501549a7a9b8f52618fd0a967470d0a1 Author: Bram Moolenaar 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) diff --git a/src/version.c b/src/version.c --- 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, diff --git a/src/vim.h b/src/vim.h --- 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 /*