mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-patch:8.0.0387: compiler warnings (#8162)
Problem: compiler warnings
Solution: Add type casts. (Christian Brabandt)
b113c3a618
This commit is contained in:

committed by
Justin M. Keyes

parent
ce3bc12e25
commit
9627325684
@@ -1330,7 +1330,7 @@ recover_names (
|
||||
names[2] = (char_u *)concat_fnames((char *)dir_name, ".sw?", TRUE);
|
||||
num_names = 3;
|
||||
} else {
|
||||
int len = STRLEN(dir_name);
|
||||
int len = (int)STRLEN(dir_name);
|
||||
p = dir_name + len;
|
||||
if (after_pathsep((char *)dir_name, (char *)p)
|
||||
&& len > 1
|
||||
@@ -3058,7 +3058,7 @@ char_u *makeswapname(char_u *fname, char_u *ffname, buf_T *buf, char_u *dir_name
|
||||
#ifdef HAVE_READLINK
|
||||
char_u fname_buf[MAXPATHL];
|
||||
#endif
|
||||
int len = STRLEN(dir_name);
|
||||
int len = (int)STRLEN(dir_name);
|
||||
|
||||
s = dir_name + len;
|
||||
if (after_pathsep((char *)dir_name, (char *)s)
|
||||
|
Reference in New Issue
Block a user