0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0727: compiler warning for sprintf() argument

Problem:    Compiler warning for sprintf() argument.
Solution:   Add type cast.
This commit is contained in:
Bram Moolenaar
2019-01-11 20:47:31 +01:00
parent 535d5b653a
commit 44a7db4ffd
2 changed files with 3 additions and 1 deletions

View File

@@ -473,7 +473,7 @@ run_silent_uninstall(char *uninst_exe)
for (i = 0; ; i++) for (i = 0; ; i++)
{ {
sprintf(temp_uninst, "%s\\vimun%04X.exe", temp_dir, sprintf(temp_uninst, "%s\\vimun%04X.exe", temp_dir,
(i + tick) & 0xFFFF); (unsigned int)((i + tick) & 0xFFFF));
if (CopyFile(uninst_exe, temp_uninst, TRUE)) if (CopyFile(uninst_exe, temp_uninst, TRUE))
break; break;
if (GetLastError() != ERROR_FILE_EXISTS) if (GetLastError() != ERROR_FILE_EXISTS)

View File

@@ -795,6 +795,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
727,
/**/ /**/
726, 726,
/**/ /**/