From aa0af72933424bcf778db29c63c3727b25052c27 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Sat, 10 Aug 2013 14:56:58 -0700 Subject: [PATCH] Fix 64-bit MSVC warnings --- src/win32/utf-conv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/utf-conv.c b/src/win32/utf-conv.c index 623b0517a..d4dbfbab9 100644 --- a/src/win32/utf-conv.c +++ b/src/win32/utf-conv.c @@ -72,10 +72,10 @@ void git__utf8_to_16(wchar_t *dest, size_t length, const char *src) int git__utf8_to_16(wchar_t * dest, size_t dest_size, const char *src) { - return MultiByteToWideChar(CP_UTF8, 0, src, -1, dest, dest_size); + return MultiByteToWideChar(CP_UTF8, 0, src, -1, dest, (int)dest_size); } int git__utf16_to_8(char *dest, size_t dest_size, const wchar_t *src) { - return WideCharToMultiByte(CP_UTF8, 0, src, -1, dest, dest_size, NULL, NULL); + return WideCharToMultiByte(CP_UTF8, 0, src, -1, dest, (int)dest_size, NULL, NULL); } -- 2.39.5