commit | 44a7db4ffdd11dafd345fd1c2c7b2509d01e3895 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jan 11 20:47:31 2019 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jan 11 20:47:31 2019 +0100 |
tree | c1f667b70de82200f06b88cf8c628b92ad9abfb7 | |
parent | 535d5b653a1eddf49ee11dc9639c5355ef023301 [diff] [blame] |
patch 8.1.0727: compiler warning for sprintf() argument Problem: Compiler warning for sprintf() argument. Solution: Add type cast.
diff --git a/src/dosinst.c b/src/dosinst.c index 5c290a8..5b05598 100644 --- a/src/dosinst.c +++ b/src/dosinst.c
@@ -473,7 +473,7 @@ 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)