mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.0040: warnings from 64-bit compiler
Problem: Warnings from 64-bit compiler. Solution: Add type casts. (Mike Williams)
This commit is contained in:
@@ -1894,7 +1894,7 @@ init_prompt(int cmdchar_todo)
|
|||||||
|| Insstart_orig.col != (int)STRLEN(prompt))
|
|| Insstart_orig.col != (int)STRLEN(prompt))
|
||||||
{
|
{
|
||||||
Insstart.lnum = curwin->w_cursor.lnum;
|
Insstart.lnum = curwin->w_cursor.lnum;
|
||||||
Insstart.col = STRLEN(prompt);
|
Insstart.col = (int)STRLEN(prompt);
|
||||||
Insstart_orig = Insstart;
|
Insstart_orig = Insstart;
|
||||||
Insstart_textlen = Insstart.col;
|
Insstart_textlen = Insstart.col;
|
||||||
Insstart_blank_vcol = MAXCOL;
|
Insstart_blank_vcol = MAXCOL;
|
||||||
@@ -1904,7 +1904,7 @@ init_prompt(int cmdchar_todo)
|
|||||||
if (cmdchar_todo == 'A')
|
if (cmdchar_todo == 'A')
|
||||||
coladvance((colnr_T)MAXCOL);
|
coladvance((colnr_T)MAXCOL);
|
||||||
if (cmdchar_todo == 'I' || curwin->w_cursor.col <= (int)STRLEN(prompt))
|
if (cmdchar_todo == 'I' || curwin->w_cursor.col <= (int)STRLEN(prompt))
|
||||||
curwin->w_cursor.col = STRLEN(prompt);
|
curwin->w_cursor.col = (int)STRLEN(prompt);
|
||||||
/* Make sure the cursor is in a valid position. */
|
/* Make sure the cursor is in a valid position. */
|
||||||
check_cursor();
|
check_cursor();
|
||||||
}
|
}
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
40,
|
||||||
/**/
|
/**/
|
||||||
39,
|
39,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user