diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-11 20:47:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-11 20:47:31 +0100 |
commit | 44a7db4ffdd11dafd345fd1c2c7b2509d01e3895 (patch) | |
tree | c1f667b70de82200f06b88cf8c628b92ad9abfb7 /src/dosinst.c | |
parent | 535d5b653a1eddf49ee11dc9639c5355ef023301 (diff) | |
download | vim-git-44a7db4ffdd11dafd345fd1c2c7b2509d01e3895.tar.gz |
patch 8.1.0727: compiler warning for sprintf() argumentv8.1.0727
Problem: Compiler warning for sprintf() argument.
Solution: Add type cast.
Diffstat (limited to 'src/dosinst.c')
-rw-r--r-- | src/dosinst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dosinst.c b/src/dosinst.c index 5c290a8dd..5b0559887 100644 --- 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) |