From f60a63485ea26d9bda1618d1b72662eca65b5f1f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 15 Jan 2022 14:16:37 +0000 Subject: [PATCH] patch 8.2.4097: wrong number in error message on 32 bit system Problem: Wrong number in error message on 32 bit system. (John Paul Adrian Glaubitz) Solution: Add type cast. (closes #9527) --- src/version.c | 2 ++ src/vim9compile.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index ca56f419c..7a75be32a 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4097, /**/ 4096, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index af11ba929..afc788543 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2008,7 +2008,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx) : isn->isn_arg.number != needed_list_len) { semsg(_(e_expected_nr_items_but_got_nr), - needed_list_len, isn->isn_arg.number); + needed_list_len, (int)isn->isn_arg.number); goto theend; } } -- 2.40.0