changeset 18654:5f9faf363b19 v8.1.2319

patch 8.1.2319: compiler warning for int size Commit: https://github.com/vim/vim/commit/07a63d86338476bafbd1a3ec462672df92666498 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 18 21:38:37 2019 +0100 patch 8.1.2319: compiler warning for int size Problem: Compiler warning for int size. Solution: Add typecast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Nov 2019 21:45:03 +0100
parents 6c3ba0c377bf
children 6273ca96facb
files src/mouse.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -2884,7 +2884,7 @@ mouse_comp_pos(
 	col += win->w_skipcol;
 	// limit to text length plus one
 	p = ml_get_buf(win->w_buffer, lnum, FALSE);
-	count = STRLEN(p);
+	count = (int)STRLEN(p);
 	if (col > count)
 	    col = count;
     }
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2319,
+/**/
     2318,
 /**/
     2317,