Skip to content

Commit e31e256

Browse files
committed
patch 8.1.0040: warnings from 64-bit compiler
Problem: Warnings from 64-bit compiler. Solution: Add type casts. (Mike Williams)
1 parent d79a262 commit e31e256

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/edit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,7 @@ init_prompt(int cmdchar_todo)
18941894
|| Insstart_orig.col != (int)STRLEN(prompt))
18951895
{
18961896
Insstart.lnum = curwin->w_cursor.lnum;
1897-
Insstart.col = STRLEN(prompt);
1897+
Insstart.col = (int)STRLEN(prompt);
18981898
Insstart_orig = Insstart;
18991899
Insstart_textlen = Insstart.col;
19001900
Insstart_blank_vcol = MAXCOL;
@@ -1904,7 +1904,7 @@ init_prompt(int cmdchar_todo)
19041904
if (cmdchar_todo == 'A')
19051905
coladvance((colnr_T)MAXCOL);
19061906
if (cmdchar_todo == 'I' || curwin->w_cursor.col <= (int)STRLEN(prompt))
1907-
curwin->w_cursor.col = STRLEN(prompt);
1907+
curwin->w_cursor.col = (int)STRLEN(prompt);
19081908
/* Make sure the cursor is in a valid position. */
19091909
check_cursor();
19101910
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
40,
764766
/**/
765767
39,
766768
/**/

0 commit comments

Comments
 (0)