mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 22:24:56 +00:00
Fix MSVC amd64 compilation warnings
This commit is contained in:
parent
28abf3dbd2
commit
9ac8b113b1
@ -25,7 +25,7 @@
|
|||||||
struct checkout_diff_data
|
struct checkout_diff_data
|
||||||
{
|
{
|
||||||
git_buf *path;
|
git_buf *path;
|
||||||
int workdir_len;
|
size_t workdir_len;
|
||||||
git_checkout_opts *checkout_opts;
|
git_checkout_opts *checkout_opts;
|
||||||
git_indexer_stats *stats;
|
git_indexer_stats *stats;
|
||||||
git_repository *owner;
|
git_repository *owner;
|
||||||
|
@ -1354,9 +1354,9 @@ int git_diff_iterator_num_lines_in_hunk(git_diff_iterator *iter)
|
|||||||
return error;
|
return error;
|
||||||
|
|
||||||
if (iter->hunk_curr)
|
if (iter->hunk_curr)
|
||||||
return iter->hunk_curr->line_count;
|
return (int)iter->hunk_curr->line_count;
|
||||||
if (iter->hunk_head)
|
if (iter->hunk_head)
|
||||||
return iter->hunk_head->line_count;
|
return (int)iter->hunk_head->line_count;
|
||||||
return 0;
|
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,
|
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");
|
giterr_set(GITERR_OS, "Failed to send request");
|
||||||
goto on_error;
|
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)
|
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)
|
void git__utf16_to_8(char *out, const wchar_t *input)
|
||||||
|
Loading…
Reference in New Issue
Block a user