diff src/edit.c @ 11311:be499043ca70 v8.0.0541

patch 8.0.0541: compiler warning on MS-Windows commit https://github.com/vim/vim/commit/04000560ca81cc2608b291d0990e661b41ca8c68 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 3 21:35:42 2017 +0200 patch 8.0.0541: compiler warning on MS-Windows Problem: Compiler warning on MS-Windows. Solution: Add a type cast. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Mon, 03 Apr 2017 21:45:04 +0200
parents d772bf077b3f
children e45c6e4d78af
line wrap: on
line diff
--- a/src/edit.c
+++ b/src/edit.c
@@ -9032,7 +9032,7 @@ ins_bs(
 			       (linenr_T)(curwin->w_cursor.lnum + 1)) == FAIL)
 		return FALSE;
 	    --Insstart.lnum;
-	    Insstart.col = STRLEN(ml_get(Insstart.lnum));
+	    Insstart.col = (colnr_T)STRLEN(ml_get(Insstart.lnum));
 	}
 	/*
 	 * In replace mode: