changeset 19119:7816aa44c145 v8.2.0119

patch 8.2.0119: message test fails on some platforms Commit: https://github.com/vim/vim/commit/1470dc35c4b14bda1995b7566c9a41a33eb06517 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 14 22:02:14 2020 +0100 patch 8.2.0119: message test fails on some platforms Problem: Message test fails on some platforms. (Elimar Riesebieter) Solution: Add type cast to vim_snprintf() argument. (Dominique Pelle)
author Bram Moolenaar <Bram@vim.org>
date Tue, 14 Jan 2020 22:15:03 +0100
parents d121c649119f
children 0e5a3e183199
files src/message_test.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/message_test.c
+++ b/src/message_test.c
@@ -166,7 +166,7 @@ test_vim_snprintf(void)
 	assert(bsize == 0 || STRNCMP(buf, "deadbeef", bsize_int) == 0);
 	assert(bsize == 0 || buf[MIN(n, bsize_int)] == '\0');
 
-	n = vim_snprintf(buf, bsize, fmt_06b, 12);
+	n = vim_snprintf(buf, bsize, fmt_06b, (uvarnumber_T)12);
 	assert(n == 6);
 	assert(bsize == 0 || STRNCMP(buf, "001100", bsize_int) == 0);
 	assert(bsize == 0 || buf[MIN(n, bsize_int)] == '\0');
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    119,
+/**/
     118,
 /**/
     117,