]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0119: message test fails on some platforms v8.2.0119
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Jan 2020 21:02:14 +0000 (22:02 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Jan 2020 21:02:14 +0000 (22:02 +0100)
Problem:    Message test fails on some platforms. (Elimar Riesebieter)
Solution:   Add type cast to vim_snprintf() argument. (Dominique Pelle)

src/message_test.c
src/version.c

index 38e52c5f8a258b23b90a8fbc226e9f9c3d150eb6..3397a9cb475ebee39348086166a6b4fc87dc2184 100644 (file)
@@ -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');
index 4ac40088d5a71bacb149fc0ad1abc5edb3bb99bc..44bfd6bc324efa7e1d077f7fb7dcd2aee7ebc939 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    119,
 /**/
     118,
 /**/