Skip to content

Commit

Permalink
patch 8.0.0246: compiler warnings for int to pointer conversion
Browse files Browse the repository at this point in the history
Problem:    Compiler warnings for int to pointer conversion.
Solution:   Fix macro for mch_memmove(). (John Marriott)
  • Loading branch information
brammool committed Jan 27, 2017
1 parent 16038d5 commit 3a118be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
246,
/**/
245,
/**/
Expand Down
2 changes: 1 addition & 1 deletion src/vim.h
Expand Up @@ -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

/*
Expand Down

0 comments on commit 3a118be

Please sign in to comment.