]> granicus.if.org Git - vim/commitdiff
patch 8.1.0040: warnings from 64-bit compiler v8.1.0040
authorBram Moolenaar <Bram@vim.org>
Sun, 10 Jun 2018 11:12:55 +0000 (13:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 10 Jun 2018 11:12:55 +0000 (13:12 +0200)
Problem:    Warnings from 64-bit compiler.
Solution:   Add type casts. (Mike Williams)

src/edit.c
src/version.c

index 7c7fadd10a1abd52f7f96deff6d531e44fb34757..731b9dc7ff21c621ef3822c0aecedfbb178f2a55 100644 (file)
@@ -1894,7 +1894,7 @@ init_prompt(int cmdchar_todo)
                                   || Insstart_orig.col != (int)STRLEN(prompt))
     {
        Insstart.lnum = curwin->w_cursor.lnum;
-       Insstart.col = STRLEN(prompt);
+       Insstart.col = (int)STRLEN(prompt);
        Insstart_orig = Insstart;
        Insstart_textlen = Insstart.col;
        Insstart_blank_vcol = MAXCOL;
@@ -1904,7 +1904,7 @@ init_prompt(int cmdchar_todo)
     if (cmdchar_todo == 'A')
        coladvance((colnr_T)MAXCOL);
     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. */
     check_cursor();
 }
index 0c804b9a559b6158ca585d6b5c429ad4eac72638..88c1fb110c154a2a814108fdcf5ceb9237ac1749 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    40,
 /**/
     39,
 /**/