Mercurial > vim
changeset 8595:887b378f29d1 v7.4.1587
commit https://github.com/vim/vim/commit/1c8b4edb9b6cd5248925f3f06ec82486be9fb4ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 17 21:51:03 2016 +0100
patch 7.4.1587
Problem: Compiler warnings with 64 bit compiler.
Solution: Add type casts. (Mike Williams)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 17 Mar 2016 22:00:04 +0100 |
parents | f5836ba956b1 |
children | 547245667940 |
files | src/ex_cmds2.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -3272,7 +3272,7 @@ do_in_runtimepath( if ((done == FAIL || (flags & DIP_ALL)) && (flags & DIP_START)) { - len = STRLEN(start_dir) + STRLEN(name); + len = (int)(STRLEN(start_dir) + STRLEN(name)); s = alloc(len); if (s == NULL) return FAIL; @@ -3283,7 +3283,7 @@ do_in_runtimepath( if ((done == FAIL || (flags & DIP_ALL)) && (flags & DIP_OPT)) { - len = STRLEN(opt_dir) + STRLEN(name); + len = (int)(STRLEN(opt_dir) + STRLEN(name)); s = alloc(len); if (s == NULL) return FAIL;