diff options
author | Ben Straub <bs@github.com> | 2012-12-05 03:11:26 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-12-05 03:11:26 +0400 |
commit | ed8c978b49ca5b5e5becd37cc8d71e086217672d (patch) | |
tree | 32a2c8195bbdf99dc8063204eef42a66b0418ed1 /LibGit2Sharp/OdbBackend.cs | |
parent | 3db1f92f630febc6ee2c76e891faf64e1dae0e8e (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.cs | 4 |
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); |