Commit 9ac8b113 by nulltoken

Fix MSVC amd64 compilation warnings

parent 28abf3db
......@@ -25,7 +25,7 @@
struct checkout_diff_data
{
git_buf *path;
int workdir_len;
size_t workdir_len;
git_checkout_opts *checkout_opts;
git_indexer_stats *stats;
git_repository *owner;
......
......@@ -1354,9 +1354,9 @@ int git_diff_iterator_num_lines_in_hunk(git_diff_iterator *iter)
return error;
if (iter->hunk_curr)
return iter->hunk_curr->line_count;
return (int)iter->hunk_curr->line_count;
if (iter->hunk_head)
return iter->hunk_head->line_count;
return (int)iter->hunk_head->line_count;
return 0;
}
......
......@@ -166,7 +166,7 @@ static int send_request(transport_http *t, const char *service, void *data, ssiz
}
if (WinHttpSendRequest(t->request, WINHTTP_NO_ADDITIONAL_HEADERS, 0,
data, content_length, content_length, 0) == FALSE) {
data, (DWORD)content_length, (DWORD)content_length, 0) == FALSE) {
giterr_set(GITERR_OS, "Failed to send request");
goto on_error;
}
......
......@@ -72,7 +72,7 @@ void git__utf8_to_16(wchar_t *dest, size_t length, const char *src)
void git__utf8_to_16(wchar_t *dest, size_t length, const char *src)
{
MultiByteToWideChar(CP_UTF8, 0, src, -1, dest, length);
MultiByteToWideChar(CP_UTF8, 0, src, -1, dest, (int)length);
}
void git__utf16_to_8(char *out, const wchar_t *input)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment