changeset 15438:79b56abd37c6 v8.1.0727

patch 8.1.0727: compiler warning for sprintf() argument commit https://github.com/vim/vim/commit/44a7db4ffdd11dafd345fd1c2c7b2509d01e3895 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 11 20:47:31 2019 +0100 patch 8.1.0727: compiler warning for sprintf() argument Problem: Compiler warning for sprintf() argument. Solution: Add type cast.
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Jan 2019 21:00:07 +0100
parents 77349932500a
children ffcd5473738f
files src/dosinst.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -473,7 +473,7 @@ run_silent_uninstall(char *uninst_exe)
     for (i = 0; ; i++)
     {
 	sprintf(temp_uninst, "%s\\vimun%04X.exe", temp_dir,
-							(i + tick) & 0xFFFF);
+					  (unsigned int)((i + tick) & 0xFFFF));
 	if (CopyFile(uninst_exe, temp_uninst, TRUE))
 	    break;
 	if (GetLastError() != ERROR_FILE_EXISTS)
--- a/src/version.c
+++ b/src/version.c
@@ -796,6 +796,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    727,
+/**/
     726,
 /**/
     725,