mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
main.c: Enable -Wconversion
This commit is contained in:
parent
a6a75718a2
commit
1a40013bec
@ -62,7 +62,6 @@ set(CONV_SOURCES
|
|||||||
if_cscope.c
|
if_cscope.c
|
||||||
indent.c
|
indent.c
|
||||||
keymap.c
|
keymap.c
|
||||||
main.c
|
|
||||||
mark.c
|
mark.c
|
||||||
mbyte.c
|
mbyte.c
|
||||||
memline.c
|
memline.c
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define EXTERN
|
#define EXTERN
|
||||||
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -293,7 +294,8 @@ int main(int argc, char **argv)
|
|||||||
if (params.diff_mode)
|
if (params.diff_mode)
|
||||||
diff_win_options(firstwin, FALSE);
|
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;
|
msg_row = cmdline_row;
|
||||||
screenalloc(false); /* allocate screen buffers */
|
screenalloc(false); /* allocate screen buffers */
|
||||||
set_init_2();
|
set_init_2();
|
||||||
|
Loading…
Reference in New Issue
Block a user