summaryrefslogtreecommitdiff
path: root/src/message_test.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-14 22:02:14 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-14 22:02:14 +0100
commit1470dc35c4b14bda1995b7566c9a41a33eb06517 (patch)
tree71ff167eddf52cb6062194c68cdaa68f6c17e2c2 /src/message_test.c
parentca7c078b799bfc96b54e9e41f5be3e0bfefadce5 (diff)
downloadvim-git-1470dc35c4b14bda1995b7566c9a41a33eb06517.tar.gz
patch 8.2.0119: message test fails on some platformsv8.2.0119
Problem: Message test fails on some platforms. (Elimar Riesebieter) Solution: Add type cast to vim_snprintf() argument. (Dominique Pelle)
Diffstat (limited to 'src/message_test.c')
-rw-r--r--src/message_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message_test.c b/src/message_test.c
index 38e52c5f8..3397a9cb4 100644
--- 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');