aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r--src/nvim/os_unix.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c
index 35a7942059..ded575529f 100644
--- a/src/nvim/os_unix.c
+++ b/src/nvim/os_unix.c
@@ -369,10 +369,7 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
// With interactive completion, the error message is not printed.
if (!(flags & EW_SILENT)) {
msg_putchar('\n'); // clear bottom line quickly
-#if SIZEOF_LONG > SIZEOF_INT
- assert(Rows <= (long)INT_MAX + 1);
-#endif
- cmdline_row = (int)(Rows - 1); // continue on last line
+ cmdline_row = Rows - 1; // continue on last line
MSG(_(e_wildexpand));
msg_start(); // don't overwrite this message
}
@@ -538,7 +535,7 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
// Skip files that are not executable if we check for that.
if (!dir && (flags & EW_EXEC)
- && !os_can_exe((*file)[i], NULL, !(flags & EW_SHELLCMD))) {
+ && !os_can_exe((char *)(*file)[i], NULL, !(flags & EW_SHELLCMD))) {
continue;
}