From 44a7db4ffdd11dafd345fd1c2c7b2509d01e3895 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 11 Jan 2019 20:47:31 +0100 Subject: patch 8.1.0727: compiler warning for sprintf() argument Problem: Compiler warning for sprintf() argument. Solution: Add type cast. --- src/dosinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dosinst.c') diff --git a/src/dosinst.c b/src/dosinst.c index 5c290a8dd8..5b05598872 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) -- cgit v1.2.3