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:
authornulltoken <emeric.fermas@gmail.com>2013-08-16 21:46:28 +0400
committernulltoken <emeric.fermas@gmail.com>2013-08-16 21:46:48 +0400
commitcfdcf183b9c364685ea8b7b41703011ab6eb2697 (patch)
treee3eb36bdcf77399bfe2bd52a2cddbbf5c9e93995 /LibGit2Sharp/OdbBackend.cs
parentaac17c74e73c9e433407a8579906f81c064d57bd (diff)
Fix OdbBackEnd ForEach prototype
Diffstat (limited to 'LibGit2Sharp/OdbBackend.cs')
-rw-r--r--LibGit2Sharp/OdbBackend.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/LibGit2Sharp/OdbBackend.cs b/LibGit2Sharp/OdbBackend.cs
index 23ed4adc..c966a582 100644
--- a/LibGit2Sharp/OdbBackend.cs
+++ b/LibGit2Sharp/OdbBackend.cs
@@ -555,12 +555,12 @@ namespace LibGit2Sharp
this.ManagedCallback = CallbackMethod;
}
- private int CallbackMethod(byte[] oid)
+ private unsafe int CallbackMethod(byte[] oid)
{
- GitOid gitOid = new GitOid();
- gitOid.Id = oid;
-
- return cb(ref gitOid, data);
+ fixed(void* ptr = &oid[0])
+ {
+ return cb(new IntPtr(ptr), data);
+ }
}
public readonly ForEachCallback ManagedCallback;