mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-25 10:48:44 +00:00
Fix MSVC compilation warnings
This commit is contained in:
parent
dfc50de260
commit
7505022397
@ -1422,7 +1422,7 @@ int git_repository_hashfile(
|
|||||||
|
|
||||||
len = git_futils_filesize(fd);
|
len = git_futils_filesize(fd);
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
error = len;
|
error = (int)len;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1432,7 +1432,7 @@ int git_repository_hashfile(
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
error = git_odb__hashfd_filtered(out, fd, len, type, &filters);
|
error = git_odb__hashfd_filtered(out, fd, (size_t)len, type, &filters);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
p_close(fd);
|
p_close(fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user