diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-27 21:22:19 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-27 21:22:19 +0100 |
commit | 3a118be1501549a7a9b8f52618fd0a967470d0a1 (patch) | |
tree | 8c3543f10c16d74014c29394308eda8c842e7af2 | |
parent | 16038d50c4309e8dee33c70ca2c9e7f73439c4df (diff) | |
download | vim-git-3a118be1501549a7a9b8f52618fd0a967470d0a1.tar.gz |
patch 8.0.0246: compiler warnings for int to pointer conversionv8.0.0246
Problem: Compiler warnings for int to pointer conversion.
Solution: Fix macro for mch_memmove(). (John Marriott)
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index a2ebcf51c..d3c25e694 100644 --- 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, @@ -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 /* |