mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
Enable -Wconversion: os_unix.c.
This commit is contained in:

committed by
Justin M. Keyes

parent
cbabf9491b
commit
36340803af
@@ -71,7 +71,6 @@ set(CONV_SOURCES
|
|||||||
move.c
|
move.c
|
||||||
normal.c
|
normal.c
|
||||||
ops.c
|
ops.c
|
||||||
os_unix.c
|
|
||||||
path.c
|
path.c
|
||||||
popupmnu.c
|
popupmnu.c
|
||||||
quickfix.c
|
quickfix.c
|
||||||
|
@@ -730,7 +730,10 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
|||||||
{
|
{
|
||||||
redraw_later_clear(); /* probably messed up screen */
|
redraw_later_clear(); /* probably messed up screen */
|
||||||
msg_putchar('\n'); /* clear bottom line quickly */
|
msg_putchar('\n'); /* clear bottom line quickly */
|
||||||
cmdline_row = Rows - 1; /* continue on last line */
|
#if SIZEOF_LONG > SIZEOF_INT
|
||||||
|
assert(Rows <= (long)INT_MAX + 1);
|
||||||
|
#endif
|
||||||
|
cmdline_row = (int)(Rows - 1); /* continue on last line */
|
||||||
MSG(_(e_wildexpand));
|
MSG(_(e_wildexpand));
|
||||||
msg_start(); /* don't overwrite this message */
|
msg_start(); /* don't overwrite this message */
|
||||||
}
|
}
|
||||||
@@ -858,7 +861,7 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
|||||||
goto notfound;
|
goto notfound;
|
||||||
}
|
}
|
||||||
*num_file = i;
|
*num_file = i;
|
||||||
*file = (char_u **)xmalloc(sizeof(char_u *) * i);
|
*file = xmalloc(sizeof(char_u *) * (size_t)i);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Isolate the individual file names.
|
* Isolate the individual file names.
|
||||||
|
Reference in New Issue
Block a user