mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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)
This commit is contained in:
@@ -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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user