mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 11:20:59 +00:00
Merge pull request #913 from nulltoken/fix/warnings
Fix MSVC compilation warnings
This commit is contained in:
commit
af6bcd8b93
@ -727,7 +727,7 @@ int git_diff_entrycount(git_diff_list *diff, int delta_t)
|
||||
assert(diff);
|
||||
|
||||
if (delta_t < 0)
|
||||
return diff->deltas.length;
|
||||
return (int)diff->deltas.length;
|
||||
|
||||
git_vector_foreach(&diff->deltas, i, delta) {
|
||||
if (delta->status == (git_delta_t)delta_t)
|
||||
|
@ -142,7 +142,7 @@ int git_signature_now(git_signature **sig_out, const char *name, const char *ema
|
||||
time(&now);
|
||||
utc_tm = p_gmtime_r(&now, &_utc);
|
||||
utc_tm->tm_isdst = -1;
|
||||
offset = difftime(now, mktime(utc_tm));
|
||||
offset = (time_t)difftime(now, mktime(utc_tm));
|
||||
offset /= 60;
|
||||
|
||||
if (git_signature_new(&sig, name, email, now, (int)offset) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user