mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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)
This commit is contained in:
@@ -166,7 +166,7 @@ test_vim_snprintf(void)
|
|||||||
assert(bsize == 0 || STRNCMP(buf, "deadbeef", bsize_int) == 0);
|
assert(bsize == 0 || STRNCMP(buf, "deadbeef", bsize_int) == 0);
|
||||||
assert(bsize == 0 || buf[MIN(n, 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(n == 6);
|
||||||
assert(bsize == 0 || STRNCMP(buf, "001100", bsize_int) == 0);
|
assert(bsize == 0 || STRNCMP(buf, "001100", bsize_int) == 0);
|
||||||
assert(bsize == 0 || buf[MIN(n, bsize_int)] == '\0');
|
assert(bsize == 0 || buf[MIN(n, bsize_int)] == '\0');
|
||||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
119,
|
||||||
/**/
|
/**/
|
||||||
118,
|
118,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user