mirror of
https://github.com/neovim/neovim.git
synced 2025-11-26 20:20:42 +00:00
main.c: Enable -Wconversion
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#define EXTERN
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
@@ -293,7 +294,8 @@ int main(int argc, char **argv)
|
||||
if (params.diff_mode)
|
||||
diff_win_options(firstwin, FALSE);
|
||||
|
||||
cmdline_row = Rows - p_ch;
|
||||
assert(p_ch >= 0 && Rows >= p_ch && Rows - p_ch <= INT_MAX);
|
||||
cmdline_row = (int)(Rows - p_ch);
|
||||
msg_row = cmdline_row;
|
||||
screenalloc(false); /* allocate screen buffers */
|
||||
set_init_2();
|
||||
|
||||
Reference in New Issue
Block a user