Mercurial > vim
diff src/memline.c @ 10996:2f041b367cd9 v8.0.0387
patch 8.0.0387: compiler warnings
commit https://github.com/vim/vim/commit/b113c3a618113122e62697dd73427261f8c51b2c
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 28 21:26:17 2017 +0100
patch 8.0.0387: compiler warnings
Problem: compiler warnings
Solution: Add type casts. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 28 Feb 2017 21:30:06 +0100 |
parents | 835604f3c37a |
children | 506f5d8b7d8b |
line wrap: on
line diff
--- a/src/memline.c +++ b/src/memline.c @@ -1863,7 +1863,7 @@ recover_names( else { #if defined(UNIX) || defined(WIN3264) - int len = STRLEN(dir_name); + int len = (int)STRLEN(dir_name); p = dir_name + len; if (after_pathsep(dir_name, p) && len > 1 && p[-1] == p[-2]) @@ -3924,7 +3924,7 @@ makeswapname( #endif #if defined(UNIX) || defined(WIN3264) /* Need _very_ long file names */ - int len = STRLEN(dir_name); + int len = (int)STRLEN(dir_name); s = dir_name + len; if (after_pathsep(dir_name, s) && len > 1 && s[-1] == s[-2])