]> granicus.if.org Git - vim/commitdiff
patch 8.2.4097: wrong number in error message on 32 bit system v8.2.4097
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Jan 2022 14:16:37 +0000 (14:16 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Jan 2022 14:16:37 +0000 (14:16 +0000)
Problem:    Wrong number in error message on 32 bit system. (John Paul Adrian
            Glaubitz)
Solution:   Add type cast. (closes #9527)

src/version.c
src/vim9compile.c

index ca56f419c6dc750e697490ce14ec09f81d14ef25..7a75be32aaefc18f45e3b4892b80977fc7f7466a 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4097,
 /**/
     4096,
 /**/
index af11ba929e8e6a7e65a6189fdf51c5d6ecadccb8..afc7885434cf82a554830e749935c03dc239b9f8 100644 (file)
@@ -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;
                    }
                }