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>2012-05-26 14:55:14 +0400
committernulltoken <emeric.fermas@gmail.com>2012-05-26 14:55:14 +0400
commit0690be7eca2fa56231ee6a250bc13c76ebcc7e94 (patch)
tree1332ab66414d818245d414918360877de57c8043 /LibGit2Sharp/Configuration.cs
parentf28c2698bbed159e5184ec646f522a8bc3d9fef5 (diff)
Fix wrongly declared interop signature
Diffstat (limited to 'LibGit2Sharp/Configuration.cs')
-rw-r--r--LibGit2Sharp/Configuration.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGit2Sharp/Configuration.cs b/LibGit2Sharp/Configuration.cs
index 7690d3ea..6c7d31cf 100644
--- a/LibGit2Sharp/Configuration.cs
+++ b/LibGit2Sharp/Configuration.cs
@@ -62,11 +62,11 @@ namespace LibGit2Sharp
get { return systemConfigPath != null; }
}
- private static string ConvertPath(Func<byte[], IntPtr, int> pathRetriever)
+ private static string ConvertPath(Func<byte[], uint, int> pathRetriever)
{
var buffer = new byte[NativeMethods.GIT_PATH_MAX];
- int result = pathRetriever(buffer, new IntPtr(NativeMethods.GIT_PATH_MAX));
+ int result = pathRetriever(buffer, NativeMethods.GIT_PATH_MAX);
if (result == (int)GitErrorCode.GIT_ENOTFOUND)
{