diff src/edit.c @ 14045:e182079c3374 v8.1.0040

patch 8.1.0040: warnings from 64-bit compiler commit https://github.com/vim/vim/commit/e31e256ba1769a3a3ed7840d5cc9a01ab058b8bc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 10 13:12:55 2018 +0200 patch 8.1.0040: warnings from 64-bit compiler Problem: Warnings from 64-bit compiler. Solution: Add type casts. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jun 2018 13:15:05 +0200
parents afce2005fdc8
children c1fcfafa8d1a
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -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();
 }