From 2d0429ebcef4adfc9b7c854829408a08f750f012 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Dec 2021 10:35:16 +0530 Subject: [PATCH] Fix a couple of compiler warnings --- bypy/windows/portable-installer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bypy/windows/portable-installer.cpp b/bypy/windows/portable-installer.cpp index 901a0a15ef..68e5f3c9ec 100644 --- a/bypy/windows/portable-installer.cpp +++ b/bypy/windows/portable-installer.cpp @@ -173,7 +173,7 @@ output_callback(void *ctx, const void *buf, size_t size) DWORD written = 0; if (size > 0) { - if (!WriteFile(ds->out, buf, size, &written, NULL)) { + if (!WriteFile(ds->out, buf, (DWORD)size, &written, NULL)) { show_last_error(L"Failed to write uncompressed data to temp file"); output_error_shown = 1; return 0; @@ -515,7 +515,7 @@ void makedirs(LPWSTR path) { int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { - (void)hPrevInstance; (void)pCmdLine; (void)nCmdShow; + (void)hPrevInstance; (void)pCmdLine; (void)nCmdShow; (void)hInstance; LPVOID cdata = NULL; DWORD csz = 0; int ret = 1, argc;