summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-04-26 13:04:54 -0700
committerRussell Belfer <rb@github.com>2012-04-26 13:04:54 -0700
commit821f6bc7404122260a46796422c011105a33638f (patch)
tree13a7c69cae57a5804363bc72fc3d10abd7d520d4 /src/diff.c
parent631ba94e0e489d4baf4e289539a9acf084953c32 (diff)
downloadlibgit2-821f6bc7404122260a46796422c011105a33638f.tar.gz
Fix Win32 warnings
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index b239031a2..5d70b822b 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -313,7 +313,8 @@ static git_diff_list *git_diff_list_alloc(
if (!diff_pathspec_is_interesting(&opts->pathspec))
return diff;
- if (git_vector_init(&diff->pathspec, opts->pathspec.count, NULL) < 0)
+ if (git_vector_init(
+ &diff->pathspec, (unsigned int)opts->pathspec.count, NULL) < 0)
goto fail;
for (i = 0; i < opts->pathspec.count; ++i) {