From 7b07d18ad91ed2db58644185f1eaa60fdc7303af Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Mon, 1 Aug 2016 18:25:47 +0200 Subject: [PATCH] win: ensure 32-bit printf precision This commit removes a printf warning by casting a 64-bit value to 32 bits. Fixes: https://github.com/libuv/libuv/issues/955 PR-URL: https://github.com/libuv/libuv/pull/963 Reviewed-By: Colin Ihrig --- src/win/fs-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/fs-event.c b/src/win/fs-event.c index f96a7bfd..03e4adc0 100644 --- a/src/win/fs-event.c +++ b/src/win/fs-event.c @@ -425,7 +425,7 @@ void uv_process_fs_event_req(uv_loop_t* loop, uv_req_t* req, } _snwprintf(filenamew, size, L"%s\\%.*s", handle->dirw, - file_info->FileNameLength / sizeof(WCHAR), + file_info->FileNameLength / (DWORD)sizeof(WCHAR), file_info->FileName); filenamew[size - 1] = L'\0';