Mercurial > vim
diff src/vim.h @ 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 | 24a1fbd78b76 |
children | c96534dd2b2f |
line wrap: on
line diff
--- 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 /*