main.c: Enable -Wconversion

This commit is contained in:
Michael Reed 2015-01-23 19:42:21 -05:00
parent a6a75718a2
commit 1a40013bec
2 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,6 @@ set(CONV_SOURCES
if_cscope.c
indent.c
keymap.c
main.c
mark.c
mbyte.c
memline.c

View File

@ -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();