changeset 27136:0e88b48575ee v8.2.4097

patch 8.2.4097: wrong number in error message on 32 bit system Commit: https://github.com/vim/vim/commit/f60a63485ea26d9bda1618d1b72662eca65b5f1f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 15 14:16:37 2022 +0000 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Jan 2022 15:30:03 +0100
parents aa9e2004c15d
children 4f8fc83ffa7e
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4097,
+/**/
     4096,
 /**/
     4095,
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2008,7 +2008,7 @@ compile_assignment(char_u *arg, exarg_T 
 			    : 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;
 		    }
 		}