diff options
author | Russell Belfer <rb@github.com> | 2012-09-14 02:04:32 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-09-14 02:04:32 -0700 |
commit | 38760efb3739d6b70b20ba20798ba2894bb16168 (patch) | |
tree | 3e9262585446cf29a4194716e3da619e9c477468 /src | |
parent | dfc50de2605fc6ace6762fa87200c3d4d18a919b (diff) | |
parent | 75050223976bce6fd87d5fb38fb3b70adf760c3c (diff) | |
download | libgit2-38760efb3739d6b70b20ba20798ba2894bb16168.tar.gz |
Merge pull request #934 from nulltoken/patch-1
Fix MSVC compilation warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/repository.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.c b/src/repository.c index 87022523c..20a623a85 100644 --- a/src/repository.c +++ b/src/repository.c @@ -1422,7 +1422,7 @@ int git_repository_hashfile( len = git_futils_filesize(fd); if (len < 0) { - error = len; + error = (int)len; goto cleanup; } @@ -1432,7 +1432,7 @@ int git_repository_hashfile( 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: p_close(fd); |