Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-12-05 03:11:26 +0400
committerBen Straub <bs@github.com>2012-12-05 03:11:26 +0400
commited8c978b49ca5b5e5becd37cc8d71e086217672d (patch)
tree32a2c8195bbdf99dc8063204eef42a66b0418ed1 /LibGit2Sharp/OdbBackend.cs
parent3db1f92f630febc6ee2c76e891faf64e1dae0e8e (diff)
Update libgit2 binaries to 16e6cee
https://github.com/libgit2/libgit2/compare/1e99ce9...16e6cee
Diffstat (limited to 'LibGit2Sharp/OdbBackend.cs')
-rw-r--r--LibGit2Sharp/OdbBackend.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGit2Sharp/OdbBackend.cs b/LibGit2Sharp/OdbBackend.cs
index 398273e5..f0716884 100644
--- a/LibGit2Sharp/OdbBackend.cs
+++ b/LibGit2Sharp/OdbBackend.cs
@@ -251,7 +251,7 @@ namespace LibGit2Sharp
out GitObjectType type_p,
IntPtr backend,
ref GitOid short_oid,
- uint len)
+ UIntPtr len)
{
out_oid = default(GitOid);
buffer_p = IntPtr.Zero;
@@ -270,7 +270,7 @@ namespace LibGit2Sharp
{
// The length of short_oid is described in characters (40 per full ID) vs. bytes (20)
// which is what we care about.
- byte[] shortOidArray = new byte[len >> 1];
+ byte[] shortOidArray = new byte[(long)len >> 1];
Array.Copy(short_oid.Id, shortOidArray, shortOidArray.Length);
int toReturn = odbBackend.ReadPrefix(shortOidArray, out oid, out dataStream, out objectType);