diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-08-16 21:46:28 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-08-16 21:46:48 +0400 |
commit | cfdcf183b9c364685ea8b7b41703011ab6eb2697 (patch) | |
tree | e3eb36bdcf77399bfe2bd52a2cddbbf5c9e93995 /LibGit2Sharp/OdbBackend.cs | |
parent | aac17c74e73c9e433407a8579906f81c064d57bd (diff) |
Fix OdbBackEnd ForEach prototype
Diffstat (limited to 'LibGit2Sharp/OdbBackend.cs')
-rw-r--r-- | LibGit2Sharp/OdbBackend.cs | 10 |
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; |